Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 internal void AddChild(AptifyEntityMetadata child, string propertyName)
 {
     this.children.Add(new AptifyChildEntity(child, child.Name, propertyName));
 }