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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -