Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

OneToManyPart's Where method uses property name instead of column name from ClassMap #183

Open
wilsonhut opened this Issue · 4 comments

4 participants

@wilsonhut
  • In the ClassMap...

Map(o => o.IsDeleted, "deleteFlag");

  • In the ClassMap...

HasMany(c => c.Orders).Where(c => c.IsDeleted == false);

... results in "Invalid column name 'IsDeleted'"

  • If I change the PROPERTY name from "IsDeleted" to "DeleteFlag", it doesn't fail. Shouldn't the Where go to the ClassMap for that property to get the column name from the mapping instead of using reflection to get the property name?
@chester89
Collaborator

can u please post full example of your code?

@jagregory
Owner
@Renandp

Is lambda now working? I would like to specifiy the something like

HasMany(a => a.FilmActors).Where(a => a.Actor.Age <= 18);

@chester89
Collaborator

Well, no one did fix this one, so I think the state of issue is unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.