예제 #1
0
        /// <summary>
        /// 修改家庭成员的所有FamilyTotalId
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>       int id
        public DT_Family UpdFaIds(DT_Family fa)
        {
            try
            {
                //List<DT_Family> flist= gbe.DT_Family.Where(a => a.UserId == uid).ToList();

                DT_Family f = gbe.DT_Family.Where(a => a.UserId == fa.UserId).FirstOrDefault();

                return(f);
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #2
0
 /// <summary>
 /// 删除基本信息表2
 /// </summary>
 /// <param name="u"></param>
 /// <returns></returns>
 public int DelFamily(DT_Family f)
 {
     return(ef.Remove(f));
 }
예제 #3
0
 /// <summary>
 /// 修改基本信息表2
 /// </summary>
 /// <param name="u"></param>
 /// <returns></returns>
 public int UpdateFamily(DT_Family f)
 {
     return(ef.Update(f));
 }
예제 #4
0
 /// <summary>
 /// 添加基本信息表2
 /// </summary>
 /// <param name="u"></param>
 /// <returns></returns>
 public int AddFamily(DT_Family f)
 {
     return(ef.Add(f));
 }