示例#1
0
文件: NetSize.cs 项目: Leooonard/CGXM
 public bool saveWithoutCheck()
 {
     string sqlCommand = String.Format(@"insert into NetSize (nsWidth,nsHeight,prID) values({0},{1},{2})",
         nsWidth, nsHeight, prID);
     Sql sql = new Sql();
     return sql.insertNetSize(sqlCommand);
 }
示例#2
0
文件: NetSize.cs 项目: Leooonard/CGXM
 public override bool save()
 {
     if (!isValid(new List<string>() { "nsID"}))
         return false;
     string sqlCommand = String.Format(@"insert into NetSize (nsWidth,nsHeight,prID) values({0},{1},{2})", 
         nsWidth, nsHeight, prID);
     Sql sql = new Sql();
     return sql.insertNetSize(sqlCommand);
 }