protected override void SetTemplate(Simple.Metadata.DbTable table) { var opt = Options.Instance; var re = opt.Conventions; this.SetMany(new { re = re, table = table, opt = opt, classname = re.NameFor(table), count = new Func<IEnumerable, int>(x => x.Cast<object>().Count()), idlist = new Func<DbTable, string>(MakeIdList) }); }
static void Main(string[] args) { Simple a = new Simple(); a.performActions(); }