public SuppliersProxyStub(Suppliers obj, bool dirtyColumnsOnly) { theEntity = this.entity = obj; this.dirtyColumnsOnly = dirtyColumnsOnly; }
public SuppliersProxyStub Suppliers_GetByPrimaryKey(System.Int32 supplierID) { Suppliers obj = new Suppliers(); if (obj.LoadByPrimaryKey(supplierID)) { return obj; } return null; }
public SuppliersProxyStub(Suppliers obj) { theEntity = this.entity = obj; }
public jsResponse<ProductsCollection, Products> Suppliers_ProductsCollectionBySupplierID(System.Int32 supplierID) { jsResponse<ProductsCollection, Products> response = new jsResponse<ProductsCollection, Products>(); try { Suppliers entity = new Suppliers(); entity.SupplierID = supplierID; response.collection = entity.ProductsCollectionBySupplierID; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public SuppliersProxyStub Suppliers_QueryForEntity(string serializedQuery) { SuppliersQuery query = SuppliersQuery.SerializeHelper.FromXml( serializedQuery, typeof(SuppliersQuery), AllKnownTypes) as SuppliersQuery; Suppliers obj = new Suppliers(); if (obj.Load(query)) { return obj; } return null; }
public jsResponse<SuppliersCollection, Suppliers> Suppliers_Save(Suppliers entity) { jsResponse<SuppliersCollection, Suppliers> response = new jsResponse<SuppliersCollection, Suppliers>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<SuppliersCollection, Suppliers> Suppliers_LoadByPrimaryKey(System.Int32 supplierID) { jsResponse<SuppliersCollection, Suppliers> response = new jsResponse<SuppliersCollection, Suppliers>(); try { Suppliers entity = new Suppliers(); if (entity.LoadByPrimaryKey(supplierID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void DeleteSuppliers(BusinessObjects.Suppliers obj) { BusinessObjects.Suppliers.Delete(obj.SupplierID.Value); }
public void UpdateSuppliers(BusinessObjects.Suppliers obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public void InsertSuppliers(BusinessObjects.Suppliers obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }