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); }
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); }
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); }
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; }
internal ObjectListLoader(ObjectLoader objectLoader) { this.ObjectLoader = objectLoader; this.LoadedObjects = new Hashtable(); }