Esempio n. 1
0
        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)
            });
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Simple a = new Simple();

            a.performActions();
        }