From: kazik on 15 Jan 2010 08:48 I have for example: [Table(Name="dbo.somedatabase")] public class License { [Column(IsPrimaryKey = true)] public int DeviceID { get; set; } [XmlIgnore] public string Name { get; set; } } Inside class License I keep data. I'm using Linq to inserting this data to database (SQL Server 2008). But I need to have mechanism like this: When I change name or type of property inside this class I need to change database table column before I insert data there. How to do this?
|
Pages: 1 Prev: Casting to Nullable Types Next: WinForm - Color difference between windows XP and Windows 7 |