Example #1
0
        /// <summary>
        /// 插入ServerAccountType
        /// </summary>
        public bool InsertServerAccountType(ServerAccountTypeInfo info)
        {
            if (info.CreateTime == null)
            {
                info.CreateTime = Utils.GetNow();
            }
            if (info.ModifyTime == null)
            {
                info.ModifyTime = Utils.GetNow();
            }

            SqlMapper.Instance().Insert("ServerInfo.InsertServerAccountType", info);
            return(true);
        }
Example #2
0
 /// <summary>
 /// 更新ServerAccountType
 /// </summary>
 public bool UpdateServerAccountType(ServerAccountTypeInfo info)
 {
     SqlMapper.Instance().Update("ServerInfo.UpdateServerAccountType", info);
     return(true);
 }