public CustomerCustomerDemoCollection FetchAll()
 {
     CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection();
     Query qry = new Query(CustomerCustomerDemo.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
Esempio n. 2
0
        public CustomerCustomerDemoCollection CustomerCustomerDemo_LoadAll()
        {
            CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection();

            coll.es.IsLazyLoadDisabled = true;
            coll.LoadAll();
            return(coll);
        }
        public CustomerCustomerDemoCollectionProxyStub CustomerCustomerDemo_SaveCollection(CustomerCustomerDemoCollectionProxyStub collection)
        {
            if (collection != null)
            {
                CustomerCustomerDemoCollection c = collection.GetCollection();
                c.Save();
                return(c);
            }

            return(null);
        }
        public CustomerCustomerDemoCollectionProxyStub CustomerCustomerDemo_LoadAll()
        {
            CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection();

            if (coll.LoadAll())
            {
                return(coll);
            }

            return(null);
        }
Esempio n. 5
0
        public CustomerCustomerDemoCollection CustomerCustomerDemo_LoadByDynamic(string serializedQuery)
        {
            CustomerCustomerDemoQuery query = CustomerCustomerDemoQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(CustomerCustomerDemoQuery), AllKnownTypes) as CustomerCustomerDemoQuery;

            CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection();

            coll.es.IsLazyLoadDisabled = true;
            coll.Load(query);
            return(coll);
        }
Esempio n. 6
0
        public CustomerCustomerDemoCollection.CustomerCustomerDemoCollectionWCFPacket CustomerCustomerDemo_LoadAll()
        {
            CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection();

            if (coll.LoadAll())
            {
                return(coll);
            }

            return(null);
        }
        public static CustomerCustomerDemoCollection ToDtoCollection(this EntityCollection <CustomerCustomerDemoEntity> entities)
        {
            OnBeforeEntityCollectionToDtoCollection(entities);
            var seenObjects = new Hashtable();
            var collection  = new CustomerCustomerDemoCollection();

            foreach (var entity in entities)
            {
                collection.Add(entity.ToDto(seenObjects, new Hashtable()));
            }
            OnAfterEntityCollectionToDtoCollection(entities, collection);
            return(collection);
        }
        public CustomerCustomerDemoCollectionProxyStub CustomerCustomerDemo_QueryForCollection(string serializedQuery)
        {
            CustomerCustomerDemoQuery query = CustomerCustomerDemoQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(CustomerCustomerDemoQuery), AllKnownTypes) as CustomerCustomerDemoQuery;

            CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection();

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

            return(null);
        }
 static partial void OnAfterEntityCollectionToDtoCollection(EntityCollection <CustomerCustomerDemoEntity> entities, CustomerCustomerDemoCollection dtos);
 public CustomerCustomerDemoCollection FetchByQuery(Query qry)
 {
     CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
 public CustomerCustomerDemoCollection FetchByID(object CustomerID)
 {
     CustomerCustomerDemoCollection coll = new CustomerCustomerDemoCollection().Where("CustomerID", CustomerID).Load();
     return coll;
 }