internal ObjectListLoaderByCondition(
     ObjectLoader objectLoader,
     string condition,
     params object[] paramArray)
     : base(objectLoader)
 {
     this.Condition = condition ?? string.Empty;
     SqlUtils.ConvertObjectsToInDbParams(paramArray, out this.FParamTypes, out this.FParamValues);
 }
Exemplo n.º 2
0
 internal ObjectListLoaderByIds(
     ObjectLoader objectLoader,
     MetadataProperty inProperty,
     DataId[] ids)
     : base(objectLoader)
 {
     this.FIds = new Hashtable();
     if (ids != null)
     {
         for (int index = 0; index < ids.Length; ++index)
         {
             this.FIds[(object)ids[index]] = (object)null;
         }
     }
     this.InProperty = inProperty;
 }
Exemplo n.º 3
0
        internal ObjectListLoaderByIds EnsureObjectListLoaderByIds(
            ObjectLoader objectLoader,
            MetadataProperty inProperty)
        {
            for (int index = 0; index < this.ObjectListLoaders.Count; ++index)
            {
                if (this.ObjectListLoaders[index] is ObjectListLoaderByIds objectListLoader && objectListLoader.ObjectLoader == objectLoader && objectListLoader.InProperty == inProperty)
                {
                    return(objectListLoader);
                }
            }
            ObjectListLoaderByIds objectListLoaderByIds = new ObjectListLoaderByIds(objectLoader, inProperty, (DataId[])null);

            this.ObjectListLoaders.Add((ObjectListLoader)objectListLoaderByIds);
            return(objectListLoaderByIds);
        }
Exemplo n.º 4
0
        internal ObjectLoader EnsureObjectLoader(LoadPlan plan)
        {
            for (int index = 0; index < this.ObjectLoaders.Count; ++index)
            {
                ObjectLoader objectLoader = this.ObjectLoaders[index];
                if (objectLoader.BasePlan == plan)
                {
                    return(objectLoader);
                }
            }
            ObjectLoader objectLoader1 = new ObjectLoader(plan);

            this.ObjectLoaders.Add(objectLoader1);
            objectLoader1.Prepare(this);
            return(objectLoader1);
        }
Exemplo n.º 5
0
 internal ObjectListLoader(ObjectLoader objectLoader)
 {
     this.ObjectLoader  = objectLoader;
     this.LoadedObjects = new Hashtable();
 }