static public void Delete(System.String customerID, System.String customerTypeID, esSqlAccessType sqlAccessType) { var obj = new CustomerCustomerDemo(); obj.CustomerID = customerID; obj.CustomerTypeID = customerTypeID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
public CustomerCustomerDemoProxyStub(CustomerCustomerDemo obj, bool dirtyColumnsOnly) { theEntity = this.entity = obj; this.dirtyColumnsOnly = dirtyColumnsOnly; }
public CustomerCustomerDemoProxyStub CustomerCustomerDemo_GetByPrimaryKey(System.String customerID, System.String customerTypeID) { CustomerCustomerDemo obj = new CustomerCustomerDemo(); if (obj.LoadByPrimaryKey(customerID, customerTypeID)) { return obj; } return null; }
public CustomerCustomerDemoProxyStub(CustomerCustomerDemo obj) { theEntity = this.entity = obj; }
public jsResponse<CustomersCollection, Customers> CustomerCustomerDemo_UpToCustomersByCustomerID(System.String customerID, System.String customerTypeID) { jsResponse<CustomersCollection, Customers> response = new jsResponse<CustomersCollection, Customers>(); try { CustomerCustomerDemo entity = new CustomerCustomerDemo(); entity.CustomerID = customerID; entity.CustomerTypeID = customerTypeID; response.entity = entity.UpToCustomersByCustomerID; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public CustomerCustomerDemoProxyStub CustomerCustomerDemo_QueryForEntity(string serializedQuery) { CustomerCustomerDemoQuery query = CustomerCustomerDemoQuery.SerializeHelper.FromXml( serializedQuery, typeof(CustomerCustomerDemoQuery), AllKnownTypes) as CustomerCustomerDemoQuery; CustomerCustomerDemo obj = new CustomerCustomerDemo(); if (obj.Load(query)) { return obj; } return null; }
public jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> CustomerCustomerDemo_Save(CustomerCustomerDemo entity) { jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> response = new jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> CustomerCustomerDemo_LoadByPrimaryKey(System.String customerID, System.String customerTypeID) { jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> response = new jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo>(); try { CustomerCustomerDemo entity = new CustomerCustomerDemo(); if (entity.LoadByPrimaryKey(customerID, customerTypeID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void DeleteCustomerCustomerDemo(BusinessObjects.CustomerCustomerDemo obj) { BusinessObjects.CustomerCustomerDemo.Delete(obj.CustomerID, obj.CustomerTypeID); }
public void UpdateCustomerCustomerDemo(BusinessObjects.CustomerCustomerDemo obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public void InsertCustomerCustomerDemo(BusinessObjects.CustomerCustomerDemo obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }