예제 #1
0
        public int WaerhouseAdd(Model.Warehouse Model)
        {
            string sql = $"insert into Warehouse values({Model.Mcid},'{Model.Mname}','{Model.Mplace}','{Model.Mcoordinate}','{Model.Mnum}',{Model.Mstatus})";

            return(DapperHelper.Add(sql));
        }
예제 #2
0
        public int CWarehouseAdd(Model.CWarehouse Model)
        {
            string sql = $"insert into CWarehouse values({Model.WMid},'{Model.WModd}','{Model.WMWname}','{Model.WMGpic}','{Model.WMGname}','{Model.WMGsize}','{Model.WMGodd}','{Model.WMnum}','{Model.WMtime}')";

            return(DapperHelper.Add(sql));
        }