Пример #1
0
        public EmployeeTerritoriesCollection EmployeeTerritories_LoadByDynamic(string serializedQuery)
        {
            EmployeeTerritoriesQuery query = EmployeeTerritoriesQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(EmployeeTerritoriesQuery), AllKnownTypes) as EmployeeTerritoriesQuery;

            EmployeeTerritoriesCollection coll = new EmployeeTerritoriesCollection();

            coll.es.IsLazyLoadDisabled = true;
            coll.Load(query);
            return(coll);
        }
        public EmployeeTerritoriesCollectionProxyStub EmployeeTerritories_QueryForCollection(string serializedQuery)
        {
            EmployeeTerritoriesQuery query = EmployeeTerritoriesQuery.SerializeHelper.FromXml(
                serializedQuery, typeof(EmployeeTerritoriesQuery), AllKnownTypes) as EmployeeTerritoriesQuery;

            EmployeeTerritoriesCollection coll = new EmployeeTerritoriesCollection();

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

            return(null);
        }