I am currently creating a database like this :
var database = new server(serverconnection blah blah);
var table = new Table(database, "tablename");
var name = new Column(tab, "Name", DataType.NVarChar(255));
tab.Columns.Add(name);
var something = new Column(tab, "Something", DataType.NVarChar(255));
tab.Columns.Add(something);
But now lets say I wanted to add an autoincrementing column? I noticed there was an IndexedColumn but it doesn't say anything about autoincrementing.
Does anyone know how to accomplish autoincrementing with Sqlserver.Management.Smo? I'm not interested in a query for this, I want to do it using Smo.