Esempio n. 1
0
        /// <summary>
        /// 执行存储过程
        /// </summary>
        /// <param name=""></param>
        /// <returns>影响行数</returns>
        /// <remarks>2017-05-31 罗勤尧  创建</remarks>
        public override int EXEC()
        {
            string Sql    = string.Format("sp_stockbill");
            var    result = ContextKis.StoredProcedure(Sql)
                            .Execute();

            return(result);
        }
        /// <summary>
        /// 插入明细表
        /// </summary>
        /// <param name="entity">明细表实体</param>
        /// <returns>影响的行数</returns>
        /// <remarks>2017-05-31 罗勤尧 创建</remarks>
        public override int InsertEntity(ICStockBillEntryTem entity)
        {
            //Context.Insert("icstockbillentry_tem", entity)
            //                 .Execute();
            //return entity;

            var id = ContextKis.Insert <ICStockBillEntryTem>("icstockbillentry_tem", entity)
                     .AutoMap()
                     .Execute();

            return(id);
        }