- 博客(8)
- 问答 (1)
- 收藏
- 关注
原创 递归
1var a = t.MyTest(10); //得到a=55public class Test{ int sum = 0; public int MyTest(int i) { sum += i; i--; if (i > 0) { MyTest(i); /
2016-05-30 20:53:36 544
原创 Excel导出
1using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ComponentModel;using System.Reflection;using System.Data;using Aspose.Cells;using System.Text.
2016-05-29 16:12:34 821
原创 AutoMapper扩展方法
1 /// /// AutoMapper扩展方法 /// public static class AutoMapperExtension { /// /// 集合对集合 /// /// /// /// public static List MapTo(this IEnumerable self) { if (self == nu
2016-05-27 19:42:14 2717
原创 EmitMapper 开源实体映射框架
1using EmitMapper;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcApplication1.Controllers{ public class HomeController
2016-05-24 23:13:17 2373
原创 EF结合SqlBulkCopy实现高效的批量数据插入 |EF插件EntityFramework.Extended实现批量更新和删除
批量插入 (17597条数据批量插入耗时1.7秒)using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcApplication1.Controllers{ using MvcApplication1
2016-05-24 00:55:31 18182 2
原创 Login控制器,和SkipCheckLoginAttribute过滤器
1LoginController.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace FB.CMS.MvcSite.Areas.admin.Controllers{ using FB.CMS
2016-05-16 00:05:20 1991
原创 AutoFac (控制反转IOC 与依赖注入DI) 优化
重要的参考资料http://www.cnblogs.com/xdp-gacl/p/4249939.html谈谈对Spring IOC的理解IOC概念(很重要)项目先引入AutoFac 和AutoFac MVC两个程序集到项目中然后我们在MVC(UI层)的App_Start文件夹下创建一个AutoFacConfig.cs类u
2016-05-02 04:23:23 30417 10
Vue项目 Router路由,Pinia状态管理, Vuex状态管理 Vant List组件案例
2023-11-16
CSS选择器的问题:.class.class{}
2015-01-10
TA创建的收藏夹 TA关注的收藏夹
TA关注的人