Generic Support

Old Syntax

Table t = db.AddTable("Blog");
t.AddColumn("ID", typeof(int));
t.AddColumn("Name", typeof(string), 64);
t.Save();


Example of New Generic Syntax

Table t = db.AddTable("Blog");
t.AddColumn<int>("ID");
t.AddColumn<string>("Name", 64);
t.Save();

Last edited Mar 28, 2008 at 4:58 PM by AndyStewart, version 5

Comments

No comments yet.