示例#1
0
        static public void Delete(System.String customerID, esSqlAccessType sqlAccessType)
        {
            var obj = new Customers();

            obj.CustomerID = customerID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
示例#2
0
 public void UpdateCustomers(BusinessObjects.Customers obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
		public jsResponse<CustomersCollection, Customers> Customers_Save(Customers entity)
		{
			jsResponse<CustomersCollection, Customers> response = new jsResponse<CustomersCollection, Customers>();

			try
			{
				entity.Save();
				response.entity = entity;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
示例#4
0
 public void InsertCustomers(BusinessObjects.Customers obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }