public void DeleteTShirtSize(TShirtSize tshirtsize) { _tshirts.Remove(tshirtsize); }
public void DeleteTShirtSize(TShirtSize tshirtsize) { _conferenceware.TShirtSizes.DeleteOnSubmit(tshirtsize); }
public void AddTShirtSize(TShirtSize t) { t.id = ++_tshirtsMaxId; _tshirts.Add(t); }
/// <summary> /// Creates third tshirt example /// </summary> /// <returns>Example location 3</returns> private static TShirtSize GenerateNewTShirtSize3() { var tss = new TShirtSize { name = "Large" }; return tss; }
public void AddTShirtSize(TShirtSize t) { _conferenceware.TShirtSizes.InsertOnSubmit(t); }
/// <summary> /// Generates second tshirt example /// </summary> /// <returns>The second example tshirt</returns> private static TShirtSize GenerateNewTShirtSize2() { var tss = new TShirtSize { name = "Medium" }; return tss; }
//private IRepository _repository = new ConferencewareRepository(); /// <summary> /// Generates a tshirt to be inserted (valid, no id) /// </summary> /// <returns>A TShirtSize without an id</returns> private static TShirtSize GenerateNewTShirtSize1() { var tss = new TShirtSize { name = "Small" }; return tss; }
partial void DeleteTShirtSize(TShirtSize instance);
partial void UpdateTShirtSize(TShirtSize instance);
partial void InsertTShirtSize(TShirtSize instance);