Ejemplo n.º 1
0
		public DatabaseSchemata(string name, DataTable columnTable)
		{
			columnTable.Rows.OfType<DataRow>().GroupBy(row => row["Table"].ToString()).Select(x =>
			{
				var tableSchemata = new TableSchemata();
				x.Select(columnEntry=>new ColumnSchemata(tableSchemata, columnEntry["name"]))
			})
		}
Ejemplo n.º 2
0
		/// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary>
		public ColumnSchemata(TableSchemata table, string name, Type type, bool isPrimary, bool isNullable, object @default, int? maxLength, string description, ColumnDefinitionNativeExtension native)
		{
			Table = table;
			Native = native;
			Name = name;
			IsPrimary = isPrimary;
			IsNullable = isNullable;
			Type = type;
			Default = @default;
			MaxLength = maxLength;
			Description = description;
		}