コード例 #1
0
 public SuppliersProxyStub(Suppliers obj, bool dirtyColumnsOnly)
 {
     theEntity             = this.entity = obj;
     this.dirtyColumnsOnly = dirtyColumnsOnly;
 }
コード例 #2
0
		public SuppliersProxyStub Suppliers_GetByPrimaryKey(System.Int32 supplierID)
		{
			Suppliers obj = new Suppliers();
			if (obj.LoadByPrimaryKey(supplierID))
			{
				return obj;
			}
			return null;
		}
コード例 #3
0
 public SuppliersProxyStub(Suppliers obj)
 {
     theEntity = this.entity = obj;
 }
コード例 #4
0
		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;		
		}
コード例 #5
0
		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;
		}
コード例 #6
0
		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;
		}
コード例 #7
0
		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;
		}
コード例 #8
0
 public void DeleteSuppliers(BusinessObjects.Suppliers obj)
 {
     BusinessObjects.Suppliers.Delete(obj.SupplierID.Value);
 }
コード例 #9
0
 public void UpdateSuppliers(BusinessObjects.Suppliers obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
コード例 #10
0
 public void InsertSuppliers(BusinessObjects.Suppliers obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }