Esempio n. 1
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        /// <param name="model"></param>
        public int UpdateOrgLocationById(ServOrgLocationModel model)
        {
            int result = mapContext.Update("UpdateOrgLocation", model);

            return(result);
        }
Esempio n. 2
0
 public bool UpdateEntity(int id, ServOrgLocationModel newentity)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        /// <param name="entity"></param>
        public int AddEntity(ServOrgLocationModel entity)
        {
            int id = (int)mapContext.Insert("InsertOrgLocation", entity);

            return(id);
        }