partial void DeleteBase_t_AccountDetail(Base_t_AccountDetail instance);
 partial void InsertBase_t_AccountDetail(Base_t_AccountDetail instance);
 partial void UpdateBase_t_AccountDetail(Base_t_AccountDetail instance);
示例#4
0
        /// <summary>
        /// 新增账户流水信息
        /// </summary>
        /// <param name="baaie"></param>
        /// <param name="message"></param>
        /// <returns></returns>
        public static bool InsertOperBalanceInfo(Base_t_AccountDetailEntity bade, out string message)
        {
            message = "";
            bool retFlag = false;

            Base_t_AccountDetail bad = new Base_t_AccountDetail();

            //检查入参
            if (bade == null)
            {
                message = "传入参数有误";
                return false;
            }

            //进行实体转换
            PublicFunction.ObjectCopyTo(bade, bad);

            AccountDataSourceDataContext adsdc = new AccountDataSourceDataContext();
            try
            {
                if (bad != null)
                {
                    adsdc.Base_t_AccountDetail.InsertOnSubmit(bad);
                    adsdc.SubmitChanges();
                    retFlag = true;
                    message = "新增账户流水信息成功";

                }
                else
                {
                    message = "传入信息转换时出错";
                }
            }
            catch (Exception ex)
            {
                retFlag = false;
                message = ex.Message;
            }
            return retFlag;
        }