public OrderDetailsCollectionProxyStub OrderDetails_QueryForCollection(string serializedQuery)
		{
			OrderDetailsQuery query = OrderDetailsQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(OrderDetailsQuery), AllKnownTypes) as OrderDetailsQuery;

			OrderDetailsCollection coll = new OrderDetailsCollection();
			if (coll.Load(query))
			{
				return coll;
			}

			return null;
		}
		public OrderDetailsCollectionProxyStub OrderDetails_LoadAll()
		{
			OrderDetailsCollection coll = new OrderDetailsCollection();
			if (coll.LoadAll())
			{
				return coll;
			}

			return null;
		}		
		public OrderDetailsCollection OrderDetails_LoadByDynamic(string serializedQuery)
		{
			OrderDetailsQuery query = OrderDetailsQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(OrderDetailsQuery), AllKnownTypes) as OrderDetailsQuery;

			OrderDetailsCollection coll = new OrderDetailsCollection();
			coll.es.IsLazyLoadDisabled = true;
			coll.Load(query);
			return coll;
		}
		public OrderDetailsCollection OrderDetails_LoadAll()
		{
			OrderDetailsCollection coll = new OrderDetailsCollection();
			coll.es.IsLazyLoadDisabled = true;
			coll.LoadAll();
			return coll;
		}
		public jsResponse<OrderDetailsCollection, OrderDetails> OrderDetailsCollection_Save(OrderDetailsCollection collection)
		{
			jsResponse<OrderDetailsCollection, OrderDetails> response = new jsResponse<OrderDetailsCollection, OrderDetails>();

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

			return response;
		}
		public jsResponse<OrderDetailsCollection, OrderDetails> OrderDetailsCollection_LoadAll()
		{
			jsResponse<OrderDetailsCollection, OrderDetails> response = new jsResponse<OrderDetailsCollection, OrderDetails>();

			try
			{
				OrderDetailsCollection collection = new OrderDetailsCollection();
				collection.LoadAll();
				response.collection = collection;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}