Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="manager"></param>
 /// <param name="columnMetadata"></param>
 public MetadataColumnTypeInfo(MetadataCodeTablesManager manager, ColumnMetadata columnMetadata)
 {
     CodeTablesManager = manager;
     ClrType           = columnMetadata.Property.PropertyType;
     Type = columnMetadata.Type;
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="columnMetadata"></param>
        /// <returns></returns>
        private Identity GetColumnIdentity(ColumnMetadata columnMetadata)
        {
            var isPrimary = columnMetadata.Property.IsHasAttribute <PrimaryKeyAttribute>();

            return(isPrimary ? new Identity(1, 1) : null);
        }