public bool AddRecord(ShareActivityRecordInfo record) { System.Data.Common.DbCommand sqlStringCommand = this.database.GetSqlStringCommand("INSERT INTO [Hishop_ShareActivity_Record]([shareId],[shareUser],[attendUser]) VALUES (@shareId,@shareUser,@attendUser);"); this.database.AddInParameter(sqlStringCommand, "shareId", System.Data.DbType.Int32, record.shareId); this.database.AddInParameter(sqlStringCommand, "shareUser", System.Data.DbType.Int32, record.shareUser); this.database.AddInParameter(sqlStringCommand, "attendUser", System.Data.DbType.Int32, record.attendUser); return(this.database.ExecuteNonQuery(sqlStringCommand) > 0); }
public static bool AddRecord(ShareActivityRecordInfo record) { return(_share.AddRecord(record)); }