コード例 #1
0
 public static IActivity CreateActivity(IWorkFlow workFlow, CustomerGroup customerGroup)
 {
     throw new System.NotImplementedException();
 }
コード例 #2
0
        public CustomerGroup CreateCustomerGroup(string Name)
        {
            CustomerGroup customergroup = new CustomerGroup();

            customergroup.Name = Name;

            return customergroup;
        }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
        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;
        }
コード例 #5
0
 /// <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);
 }