c# - Entity Framework 4.0. How to create new property like Compute Column on SQL Server -
i need create new column, based on property. new property must on different datatype. need use new property create association object. new property must int32.
i need cast(stringfield int)
on sql.
i know can use partial class create new property, need create new association.
you can add properties using partial class
public partial class yourclass { public int yourproperty { { return int.parse(this.astringvalue); } } }
can give more detail mean assosiation or why partial class implementation not work you.
Comments
Post a Comment