public void Delete(Designer designer) { Entities.Designers.DeleteObject(designer); SaveChanges(); }
public void Update(Designer item) { SaveChanges(); }
public void Add(Designer item) { Entities.Designers.AddObject(item); SaveChanges(); }
public void DeleteDesigner(Designer designer) { Validate.Designer(designer); Dependencies.DesignerRepository.Delete(designer); }
public static void Designer(Designer designer) { Condition.Requires(designer).IsNotNull(); Condition.Requires(designer.DesignerId).IsGreaterThan(0); }
/// <summary> /// Create a new Designer object. /// </summary> /// <param name="designerId">Initial value of the DesignerId property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> public static Designer CreateDesigner(global::System.Int32 designerId, global::System.String firstName, global::System.String lastName) { Designer designer = new Designer(); designer.DesignerId = designerId; designer.FirstName = firstName; designer.LastName = lastName; return designer; }
/// <summary> /// Deprecated Method for adding a new object to the Designers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDesigners(Designer designer) { base.AddObject("Designers", designer); }