예제 #1
0
        partial void Initialize2(SqlSet set)
        {
            if (set.ManyIncludes != null)
            {
                this.ManyIncludes = new Dictionary <string[], CollectionLoader>(set.ManyIncludes);
            }

            Initialize3(set);
        }
예제 #2
0
        public SqlSetSamples(DbConnection conn, TextWriter log)
        {
            var db = new Database(conn) {
            Configuration = {
               Log = log
            }
             };

             this.products = db.From<Product>("Products");
        }
예제 #3
0
 partial void Initialize3(SqlSet set);
예제 #4
0
 public SqlSetSamples(DbConnection conn, TextWriter log)
 {
     this.productSet = conn.From<Product>("Products", log);
 }
예제 #5
0
 public SqlSetSamples(DbConnection conn, TextWriter log)
 {
     this.productSet = conn.Set<Product>(new SqlBuilder("SELECT * FROM Products"), log);
 }