Example #1
0
        public void MarkNotificatoinAsRead(int notificationId,int userId)
        {
            tbl_UserNotifications entity = new tbl_UserNotifications
            {
                UserId = userId,
                Notification_Id = NotificationId
            };

            db.tbl_UserNotifications.AddObject(entity);
            db.SaveChanges();
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_UserNotifications EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_UserNotifications(tbl_UserNotifications tbl_UserNotifications)
 {
     base.AddObject("tbl_UserNotifications", tbl_UserNotifications);
 }
 /// <summary>
 /// Create a new tbl_UserNotifications object.
 /// </summary>
 /// <param name="userNotification_Id">Initial value of the UserNotification_Id property.</param>
 /// <param name="notification_Id">Initial value of the Notification_Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static tbl_UserNotifications Createtbl_UserNotifications(global::System.Int64 userNotification_Id, global::System.Int32 notification_Id, global::System.Int32 userId)
 {
     tbl_UserNotifications tbl_UserNotifications = new tbl_UserNotifications();
     tbl_UserNotifications.UserNotification_Id = userNotification_Id;
     tbl_UserNotifications.Notification_Id = notification_Id;
     tbl_UserNotifications.UserId = userId;
     return tbl_UserNotifications;
 }