示例#1
0
        public CustomersCollection Customers_LoadByDynamic(string serializedQuery)
        {
            CustomersQuery query = CustomersQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(CustomersQuery), AllKnownTypes) as CustomersQuery;

            CustomersCollection coll = new CustomersCollection();

            coll.es.IsLazyLoadDisabled = true;
            coll.Load(query);
            return(coll);
        }
        public CustomersCollectionProxyStub Customers_QueryForCollection(string serializedQuery)
        {
            CustomersQuery query = CustomersQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(CustomersQuery), AllKnownTypes) as CustomersQuery;

            CustomersCollection coll = new CustomersCollection();

            if (coll.Load(query))
            {
                return(coll);
            }

            return(null);
        }