public TheLoaiTranh(string MATRANH) { iMATRANH = MATRANH; TRANH tranh = data.TRANHs.Single(m => m.MATRANH == iMATRANH); sTENTRANH = tranh.TENTRANH; sANHBIA = tranh.ANHBIA; dGIABAN = double.Parse(tranh.GIABAN.ToString()); iSOLUONG = 1; }
private void detach_TRANHs(TRANH entity) { this.SendPropertyChanging(); entity.CHUDE = null; }
private void attach_TRANHs(TRANH entity) { this.SendPropertyChanging(); entity.CHUDE = this; }
partial void DeleteTRANH(TRANH instance);
partial void UpdateTRANH(TRANH instance);
partial void InsertTRANH(TRANH instance);