예제 #1
0
 internal static int Add(QQZone model)
 {
     using (var cn = new MySqlConnection(sqlconnectionString))
     {
         cn.Open();
         int i = cn.Execute(@"replace INTO " + database1 + @".QQZone (OpenID, Json, UpdateTime) VALUES (@OpenID, @Json, @UpdateTime)", model);
         cn.Close();
         return(i);
     }
 }
예제 #2
0
 public static int Add(QQZone model)
 {
     return(DAL.QQZoneDAL.Add(model));
 }