コード例 #1
0
 public DomaSqlParserTest()
 {
     ConfigContainer.AddDefault(
         DbConnectionKind.SqlServer,
         () => new SqlParameter()
         );
 }
コード例 #2
0
        static void Main(string[] args)
        {
            // create config
            ConfigContainer.AddDefault(
                DbConnectionKind.SqlServer,
                () => new SqlParameter()
                );
            ConfigContainer.EnableCache = true;
            // Dapper execute
            ExecuteSimple(new DapperExecutor());
            ExecutePaginated(new DapperExecutor());
            ExecutePaginated(new DapperExecutor(), false);

            Console.WriteLine("---- Dapper end");

            // Ef execute
            ExecuteSimple(new EfExecutor());
            ExecutePaginated(new EfExecutor());
            ExecutePaginated(new EfExecutor(), false);

            Console.WriteLine("---- Ef end");

            Console.Read();
        }