示例#1
0
        public int Shippers_GetCount(string serializedQuery)
        {
            ShippersQuery query = ShippersQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(ShippersQuery), AllKnownTypes) as ShippersQuery;

            return(query.ExecuteScalar <int>());
        }
示例#2
0
        public ShippersCollection Shippers_LoadByDynamic(string serializedQuery)
        {
            ShippersQuery query = ShippersQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(ShippersQuery), AllKnownTypes) as ShippersQuery;

            ShippersCollection coll = new ShippersCollection();

            coll.es.IsLazyLoadDisabled = true;
            coll.Load(query);
            return(coll);
        }
        public ShippersProxyStub Shippers_QueryForEntity(string serializedQuery)
        {
            ShippersQuery query = ShippersQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(ShippersQuery), AllKnownTypes) as ShippersQuery;

            Shippers obj = new Shippers();

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

            return(null);
        }
        public ShippersCollectionProxyStub Shippers_QueryForCollection(string serializedQuery)
        {
            ShippersQuery query = ShippersQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(ShippersQuery), AllKnownTypes) as ShippersQuery;

            ShippersCollection coll = new ShippersCollection();

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

            return(null);
        }