Пример #1
0
        public void EnterDealComment(string userName, int dealId, string dealComment)
        {
            int userAccessId;
            using (var context = DataAccess.GetNoTrackingDataContext())
            {
                userAccessId = UserCompiledQueries.FunGetUserAccessID(context, userName);
            }
            using (var context = DataAccess.GetDataContext())
            {
                var comment = new Tbl_DealComment
                {
                    UserAccessID = userAccessId,
                    CommentPostedDate = DateTime.Now,
                    CommentStatus = 1,
                    CommentDescription = dealComment,
                    DealID = dealId
                };

                context.Tbl_DealComments.InsertOnSubmit(comment);
                context.SubmitChanges();

            }
        }
Пример #2
0
 partial void DeleteTbl_DealComment(Tbl_DealComment instance);
Пример #3
0
 partial void UpdateTbl_DealComment(Tbl_DealComment instance);
Пример #4
0
 partial void InsertTbl_DealComment(Tbl_DealComment instance);
Пример #5
0
		private void detach_Tbl_DealComments(Tbl_DealComment entity)
		{
			this.SendPropertyChanging();
			entity.Tbl_Deal = null;
		}
Пример #6
0
		private void attach_Tbl_DealComments(Tbl_DealComment entity)
		{
			this.SendPropertyChanging();
			entity.Tbl_UserAccess = this;
		}