[C#] creating autonumber in a database
Posted on 2003-03-12
My little program creates an MS Access database with a few tables. One of the tables has a column "ID".
The creation of the database and tables is done with ADOX.
// blabla creation of db. cat = database catalog
ADOX.TableClass bla = new ADOX.TableClass(); //could be wrong. I'm at work now and do not have source here
bla.Name = "Bla";
What do I have to put in place of ADOX.DataTypeEnum.adInteger to get AutoNumber in the database or is there another way to that??