예제 #1
0
 public override void AddInsertParameters(IContext context, IDbCommand command, Product item)
 {
     base.AddInsertParameters(context, command, item);
     context.AddParameter(command, "Sex", item.Sex);
     context.AddParameter(command, "CreateTime", item.CreateTime == DateTime.MinValue ? (object)DBNull.Value : item.CreateTime);
     context.AddParameter(command, "Price", item.Price);
 }
예제 #2
0
 public override void AddInsertParameters(IContext context, IDbCommand command, course item)
 {
     base.AddInsertParameters(context, command, item);
     context.AddParameter(command, "CourseNumber", item.CourseNumber);
     context.AddParameter(command, "CourseName", item.CourseName ?? (object)DBNull.Value);
     /*add customized code between this region*/
     /*add customized code between this region*/
 }
예제 #3
0
 public override void AddInsertParameters(IContext context, IDbCommand command, Student1 item)
 {
     base.AddInsertParameters(context, command, item);
     context.AddParameter(command, "StudentNUM", item.StudentNUM);
     context.AddParameter(command, "StudentName", item.StudentName ?? (object)DBNull.Value);
     /*add customized code between this region*/
     /*add customized code between this region*/
 }
예제 #4
0
            public override void AddInsertParameters(IContext context, IDbCommand command, Catalog item)
            {
                base.AddInsertParameters(context, command, item);
                context.AddParameter(command, "Code", item.Code ?? (object)DBNull.Value);
                context.AddParameter(command, "ParentId", item.Parent == null? 0:item.Parent.Id);

                /*add customized code between this region*/
                /*add customized code between this region*/
            }
예제 #5
0
파일: WorkerDao.cs 프로젝트: CarlSath/gfdh
            public override void AddInsertParameters(IContext context, IDbCommand command, Worker item)
            {
                base.AddInsertParameters(context, command, item);
                context.AddParameter(command, "LastName", item.LastName ?? (object)DBNull.Value);
                context.AddParameter(command, "OrganizationUnitId", item.OrganizationUnit == null? 0:item.OrganizationUnit.Id);

                context.AddParameter(command, "FirstName", item.FirstName ?? (object)DBNull.Value);
                /*add customized code between this region*/
                /*add customized code between this region*/
            }
예제 #6
0
            public override void AddInsertParameters(IContext context, IDbCommand command, Enterprise item)
            {
                base.AddInsertParameters(context, command, item);
                context.AddParameter(command, "Phone", item.Phone ?? (object)DBNull.Value);
                context.AddParameter(command, "ProductCatalogId", item.ProductCatalog == null? 0:item.ProductCatalog.Id);
                context.AddParameter(command, "ProductCatalogName", item.ProductCatalog == null?(object)DBNull.Value : string.IsNullOrEmpty(item.ProductCatalog.Name) ? (object)DBNull.Value : item.ProductCatalog.Name);
                context.AddParameter(command, "ProductCatalogDescription", item.ProductCatalog == null? (object)DBNull.Value : string.IsNullOrEmpty(item.ProductCatalog.Description) ? (object)DBNull.Value : item.ProductCatalog.Description);

                /*add customized code between this region*/
                /*add customized code between this region*/
            }
예제 #7
0
            public override void AddInsertParameters(IContext context, IDbCommand command, OrganizationUnit item)
            {
                base.AddInsertParameters(context, command, item);
                context.AddParameter(command, "ManagerId", item.Manager == null? 0:item.Manager.Id);

                context.AddParameter(command, "ParentUnitId", item.ParentUnit == null? 0:item.ParentUnit.Id);

                context.AddParameter(command, "OrganizationId", item.Organization == null? 0:item.Organization.Id);

                /*add customized code between this region*/
                /*add customized code between this region*/
            }
예제 #8
0
 public override void AddInsertParameters(IContext context, IDbCommand command, Product item)
 {
     base.AddInsertParameters(context, command, item);
     context.AddParameter(command, "Price", item.Price);
     /*add customized code between this region*/
     /*add customized code between this region*/
 }
예제 #9
0
 public override void AddInsertParameters(IContext context, IDbCommand command, mlj item)
 {
     base.AddInsertParameters(context, command, item);
     context.AddParameter(command, "mkl", item.mkl ?? (object)DBNull.Value);
     /*add customized code between this region*/
     /*add customized code between this region*/
 }
예제 #10
0
 public override void AddInsertParameters(IContext context, IDbCommand command, sys_resource item)
 {
     base.AddInsertParameters(context, command, item);
     context.AddParameter(command, "url", item.url ?? (object)DBNull.Value);
     context.AddParameter(command, "parent_id", item.parent_id);
     context.AddParameter(command, "tree_level", item.tree_level);
     context.AddParameter(command, "deleted", item.deleted);
     context.AddParameter(command, "update_time", item.update_time == DateTime.MinValue ? (object)DBNull.Value : item.update_time);
     context.AddParameter(command, "is_show", item.is_show);
     context.AddParameter(command, "icon_class", item.icon_class ?? (object)DBNull.Value);
     context.AddParameter(command, "update_user", item.update_user ?? (object)DBNull.Value);
     context.AddParameter(command, "btn_type", item.btn_type);
     context.AddParameter(command, "create_user", item.create_user ?? (object)DBNull.Value);
     context.AddParameter(command, "remark", item.remark ?? (object)DBNull.Value);
     context.AddParameter(command, "create_time", item.create_time == DateTime.MinValue ? (object)DBNull.Value : item.create_time);
     context.AddParameter(command, "type", item.type ?? (object)DBNull.Value);
     context.AddParameter(command, "sort", item.sort);
     /*add customized code between this region*/
     /*add customized code between this region*/
 }