public static IActivity CreateActivity(IWorkFlow workFlow, CustomerGroup customerGroup)
 {
     throw new System.NotImplementedException();
 }
        public CustomerGroup CreateCustomerGroup(string Name)
        {
            CustomerGroup customergroup = new CustomerGroup();

            customergroup.Name = Name;

            return customergroup;
        }
 /// <summary>
 /// Create a new CustomerGroup object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="workFlowId">Initial value of the WorkFlowId property.</param>
 public static CustomerGroup CreateCustomerGroup(global::System.Int32 id, global::System.String name, global::System.Int32 workFlowId)
 {
     CustomerGroup customerGroup = new CustomerGroup();
     customerGroup.Id = id;
     customerGroup.Name = name;
     customerGroup.WorkFlowId = workFlowId;
     return customerGroup;
 }
        public CustomerGroup SaveCustomerGroup(CustomerGroup CustomerGroup)
        {
            ((DatabaseContext)this.Database).CustomerGroups.AddObject(CustomerGroup);

            ((DatabaseContext)this.Database).SaveChanges();

            ((DatabaseContext)this.Database).Refresh(System.Data.Objects.RefreshMode.StoreWins, CustomerGroup);

            return CustomerGroup;
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the CustomerGroups EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCustomerGroups(CustomerGroup customerGroup)
 {
     base.AddObject("CustomerGroups", customerGroup);
 }