data binding - Combine my Attributes on a Linq to SQL Entity Property -
i have linq sql dbml.cs file in it:
[global::system.data.linq.mapping.columnattribute(storage="_pantsname", dbtype="varchar(248)")] [global::system.runtime.serialization.datamemberattribute(order=3)] public string pantsname { { return this._pantsname; } set { if ((this._pantsname != value)) {     this._pantsname = value; } } }   i made new .cs file , put in because want add custom attribute, build exception "the type mydal.pants contains definition 'pantsname;". want add attributes linq sql binding stuff.
i don't want edit dbml.cs directly because blown-away next time regen db.
public partial class pants     {     [mycustomattribute( mybool = true )]     public string pantsname     {         {     return this._pantsname;     }     set     {     if ( ( this._pantsname != value ) )     {         this._pantsname = value;     }     }     }     }   how can “merge” 2 properties ms-wizard-made attributes own?
thanks.
 
 
  
Comments
Post a Comment