public SuppliersCollection Suppliers_LoadByDynamic(string serializedQuery) { SuppliersQuery query = SuppliersQuery.SerializeHelper.FromXml( serializedQuery, typeof(SuppliersQuery), AllKnownTypes) as SuppliersQuery; SuppliersCollection coll = new SuppliersCollection(); coll.es.IsLazyLoadDisabled = true; coll.Load(query); return(coll); }
public SuppliersCollectionProxyStub Suppliers_QueryForCollection(string serializedQuery) { SuppliersQuery query = SuppliersQuery.SerializeHelper.FromXml( serializedQuery, typeof(SuppliersQuery), AllKnownTypes) as SuppliersQuery; SuppliersCollection coll = new SuppliersCollection(); if (coll.Load(query)) { return(coll); } return(null); }