public SharedUnitCustomField(SharedUnitCustomFieldId id, string name, string dictionaryName, long minValue, long maxValue, string typeId) { if (id == null) { throw new ArgumentNullException("id"); } this.id = id; if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentNullException("name"); } this.name = name; if (string.IsNullOrWhiteSpace(dictionaryName)) { throw new ArgumentNullException("dictionaryName"); } this.dictionaryName = dictionaryName; this.minValue = minValue; this.maxValue = maxValue; this.typeId = typeId; }
public UnitCustomFieldId(PeriodId periodId, SharedUnitCustomFieldId sharedUnitCustomFieldId, SharedUnitId sharedUnitId) { this.sharedUnitCustomFieldId = sharedUnitCustomFieldId; this.sharedUnitId = sharedUnitId; this.periodId = periodId; }