예제 #1
0
 public static void AddRecommendedLog(int userId, int productId, RecommendedChangeSourceEnum type, decimal price, DateTime recomDate)
 {
     RecommendedLog rl = new RecommendedLog();
     rl.LogDate = DateTime.Now;
     rl.LogType = (int) type;
     rl.Price = price;
     rl.UserId = userId;
     rl.ProductId = productId;
     rl.RecomDate = recomDate;
     CanonDataContext db = Cdb.Instance;
     db.RecommendedLogs.InsertOnSubmit(rl);
     db.SubmitChanges();
 }
예제 #2
0
        public static void AddRecommendedLog(int userId, int productId, RecommendedChangeSourceEnum type, decimal price, DateTime recomDate)
        {
            RecommendedLog rl = new RecommendedLog();

            rl.LogDate   = DateTime.Now;
            rl.LogType   = (int)type;
            rl.Price     = price;
            rl.UserId    = userId;
            rl.ProductId = productId;
            rl.RecomDate = recomDate;
            CanonDataContext db = Cdb.Instance;

            db.RecommendedLogs.InsertOnSubmit(rl);
            db.SubmitChanges();
        }