public EntityField(string name, int instanceID, EntityFieldType fieldType, bool isKey, bool isRequired, bool isUnique, int lookUpID, bool isCore, int entityKey, string value, bool isReadOnly, string defaultValue, int displayOrder, List <string> lookUpArray, string min, string max, int maxLength, string displayName, bool autoIncrement, int incrementfrom, int incrementby, string description, bool enableencription, bool enablelimit) { Name = name ?? throw new ArgumentNullException(nameof(name)); InstanceID = instanceID; FieldType = fieldType; IsKey = isKey; IsRequired = isRequired; IsUnique = isUnique; LookUpID = lookUpID; IsCore = isCore; EntityKey = entityKey; Value = value ?? throw new ArgumentNullException(nameof(value)); IsReadOnly = isReadOnly; DefaultValue = defaultValue ?? throw new ArgumentNullException(nameof(defaultValue)); DisplayOrder = displayOrder; LookUpArray = lookUpArray ?? throw new ArgumentNullException(nameof(lookUpArray)); Min = min ?? throw new ArgumentNullException(nameof(min)); Max = max ?? throw new ArgumentNullException(nameof(max)); MaxLength = maxLength; DisplayName = displayName ?? throw new ArgumentNullException(nameof(displayName)); AutoIncrement = autoIncrement; Incrementfrom = incrementfrom; Incrementby = incrementby; IsShow = true; Description = description; enableContentLimit = enablelimit; EnableEncription = enableencription; dataEntity = new Data.EntitySchema(); }
public EntityField() { InstanceID = -1; Name = ""; InstanceID = -1; FieldType = EntityFieldType._Text; IsKey = false; IsRequired = false; IsUnique = false; LookUpID = -1; IsCore = false; EntityKey = -1; Value = ""; IsReadOnly = false; DefaultValue = ""; DisplayOrder = -1; LookUpArray = new List <string>(); Min = "0"; Max = "0"; MaxLength = 0; DisplayName = ""; AutoIncrement = false; Incrementfrom = 0; Incrementby = 0; Description = ""; enableContentLimit = false; EnableEncription = false; dataEntity = new Data.EntitySchema(); }
/// <summary> /// /// </summary> /// <param name="entityType"></param> public EntitySchema(EntityType entityType) { this.Name = ""; this.Description = ""; EntityType = entityType; EntityKey = -1; dataEntity = new Data.EntitySchema(); EntityInstances = new List <EntityField>(); PrimaryKeys = new List <string>(); Errors = new Services.ErrorHandling.ErrorInfoCollection(); Triggers = new List <Trigger>(); }
/// <summary> /// /// </summary> /// <param name="name"></param> /// <param name="description"></param> /// <param name="entityType"></param> /// <param name="entityKey"></param> /// <param name="tableName"></param> /// <param name="primaryKeys"></param> public EntitySchema(string name, string description, EntityType entityType, int entityKey, string tableName, List <string> primaryKeys) { Description = description; Name = name; EntityType = entityType; EntityKey = entityKey; TableName = tableName; PrimaryKeys = primaryKeys; IsShow = true; dataEntity = new Data.EntitySchema(); EntityInstances = new List <EntityField>(); Triggers = new List <Trigger>(); Errors = new Services.ErrorHandling.ErrorInfoCollection(); }
/// <summary> /// /// </summary> public EntitySchema() { dataEntity = new Data.EntitySchema(); Errors = new Services.ErrorHandling.ErrorInfoCollection(); }