System.Data.XmlDataInferenceLoader.PopulatePrimaryKey C# (CSharp) Method

PopulatePrimaryKey() private method

private PopulatePrimaryKey ( TableMapping table ) : void
table TableMapping
return void
		private void PopulatePrimaryKey (TableMapping table)
		{
			DataColumn col = new DataColumn (table.Table.TableName + "_Id");
			col.ColumnMapping = MappingType.Hidden;
			col.DataType = typeof (int);
			col.AllowDBNull = false;
			col.AutoIncrement = true;
			col.Namespace = table.Table.Namespace;
			col.Prefix = table.Table.Prefix;
			table.PrimaryKey = col;
		}