You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Fruit
{
[Key("Fruit_Id")] [Ignore] public string FruitId { get; set; }
[Column("Full_Name")] public string FullName { get; set; }
}
But the column names mappings are not working when fetching rows: IEnumerable<Fruit> fruits = db.Query("Fruit").Get<Fruit>();
I get the rows but the class properties whose names differ from the table columns are not filled, if I rename my class properties names then the mapping is done correctly, so apparently the ColumnAttribute I am using is useless.
Regards.
The text was updated successfully, but these errors were encountered:
I have my POCO strong type defined like this:
But the column names mappings are not working when fetching rows:
IEnumerable<Fruit> fruits = db.Query("Fruit").Get<Fruit>();
I get the rows but the class properties whose names differ from the table columns are not filled, if I rename my class properties names then the mapping is done correctly, so apparently the ColumnAttribute I am using is useless.
Regards.
The text was updated successfully, but these errors were encountered: