Esempio n. 1
0
        /// <summary>
        /// 批量提交
        /// 上下文中的SaveChanges提高到了DbSession层面中
        /// </summary>
        /// <returns></returns>
        public int SaveChanges()
        {
            DbContext context = EFContextFactory.GetEFContext();

            return(context.SaveChanges());
        }