protected BusinessItem(string name, T value, BusinessData parent, PermissionFeature feature) : base(name, parent) { this._feature = feature; this._value = value; this.IsAttribute = true; }
private void InitializeParent(BusinessData parent) { if (parent == null) { return; } this.Parent = parent; var businessRecord = parent as BusinessRecord; if (businessRecord != null) { businessRecord.AddChild(this); } }
internal void AddChild(BusinessData child) { _items.Add(child); child.Parent = this; }
internal ReadOnlyBusinessItem(string name, T value, BusinessData parent, bool isKey) : base(name, value, parent, (isKey ? PermissionFeature.Key : PermissionFeature.ReadOnly)) { }
internal VolatileBusinessItem(string name, Func <T> producer, BusinessData parent) : base(name, default(T), parent, PermissionFeature.Volatile) { _producer = producer; }
internal AlwaysSoundItem(string name, T value, BusinessData parent) : base(name, value, parent, PermissionFeature.AlwaysSound) { }
internal TransactionalBusinessItem(string name, T value, BusinessData parent) : base(name, value, parent, PermissionFeature.Sound) { }
protected SoundBusinessItemBase(string name, T value, BusinessData parent, PermissionFeature feature) : base(name, value, parent, feature) { }
internal DumpBusinessItem(string name, T value, BusinessData parent) : base(name, value, parent, PermissionFeature.Dumb) { _oldValue = default(T); }
protected BusinessData(string name, BusinessData parent) { _name = name; this.InitializeParent(parent); _status = ChangeStatus.Modified; }
public BusinessRecordDictionary(string name, BusinessData parent, int capacity) : base(name, parent) { _items = new Dictionary <TKey, TValue>(capacity); }
public BusinessRecordDictionary(string name, BusinessData parent) : this(name, parent, DEFAULT_LOAD_FACTOR) { }
public BusinessRecordCollection(string name, BusinessData parent) : base(name, parent) { _xmlRecords = new List <T>(10); _cache = new CacheData <List <T> >(() => new List <T>(this.InnerGetValues())); }
public BusinessRecordList(string name, BusinessData parent, int capacity = 0) : base(name, parent) { _records = new List <T>(capacity); }