[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Gender", DbType="Int NOT NULL", UpdateCheck=UpdateCheck.Never)]
public int Gender
{
get
{
return this._Gender;
}
set
{
if ((this._Gender != value))
{
this.OnGenderChanging(value);
this.SendPropertyChanging();
this._Gender = value;
this.SendPropertyChanged("Gender");
this.OnGenderChanged();
}
}
}
there is an attribute for update check
which I set it to never
. But when ever I made a small change in dbml I must set this property of this field to never again. How can I override this attribute for ever in an partial class?
Update: as an example I can change dbml connection string like this, one time for ever:
partial class DataBaseDataContext : System.Data.Linq.DataContext
{
public DataBaseDataContext() :
base(ConfigurationManager.ConnectionStrings["MyConnection"].ToString())
{
OnCreated();
}
}