internal AptifyColumnMetadata(string column, bool nullable, AptifyEntityMetadata joinEntity, bool isEmbedded) { if (String.IsNullOrEmpty(column)) { throw new ArgumentException("Table column cannot be set to a null or empty string"); } this.columnName = column; this.nullable = nullable; // Used for foreign key columns this.joinEntity = joinEntity; this.isEmbedded = isEmbedded; }
internal AptifyTableMetadata(AptifyEntityMetadata entity, string name) { if (entity == null) { throw new ArgumentNullException("entity"); } if (String.IsNullOrEmpty(name)) { throw new ArgumentException("Table name cannot be null or empty"); } this.name = name; this.entity = entity; }
internal void AddChild(AptifyEntityMetadata child, string propertyName) { this.children.Add(new AptifyChildEntity(child, child.Name, propertyName)); }