public static int AddStrongPushADRecord(StrongPushADRecord model) { using (var cn = new MySqlConnection(sqlconnectionString)) { cn.Open(); int i = cn.Execute(@"insert into " + database3 + @".strongpushadrecord(Plat,Agent,Url,NewUrl,Type,NewType,CreateTime,Username) values (@Plat,@Agent,@Url,@NewUrl,@Type,@NewType,'" + DateTime.Now + @"',@Username)", new { Plat = model.Plat, Agent = model.Agent, NewUrl = model.NewUrl, Url = model.Url, Type = model.Type, NewType = model.NewType, Username = model.Username }); cn.Close(); return(i); } }
public static int AddStrongPushADRecord(StrongPushADRecord model) { return(StrongPushADDAL.AddStrongPushADRecord(model)); }