including multiple tables
hi, trying should simple task. have table linked several tables via foreign keys. relationships picked in entitiy model no problem, updated metadata [include] tag. when including 1 table only(users table), can pull data dbse without problem, when try include second table(types), no results. know data there , valid. code in domain service follows:
public iqueryable getdetail(int id) { return this.context.details.include("users").include("types").where(d => d.company.id == id); }
including types table without users table again gives no result, not sure how resolve. relationship set, , created in same way relationship users, , picked in entity model also. metadata has include tags. ideas?
public iqueryable getdetail(int id) { return this.context.details.include("users").include("types").where(d => d.company.id == id); }
including types table without users table again gives no result, not sure how resolve. relationship set, , created in same way relationship users, , picked in entity model also. metadata has include tags. ideas?
try changing name in model other types.
Silverlight > WCF RIA Services with Silverlight
Comments
Post a Comment