Example #1
0
 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);
 }
Example #2
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);
        }
Example #3
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);
        }
Example #4
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;
 }
Example #5
0
 internal ObjectListLoader(ObjectLoader objectLoader)
 {
     this.ObjectLoader  = objectLoader;
     this.LoadedObjects = new Hashtable();
 }