摘要:
在使用 OSGI.NET进行插件式的开发时,需要对 Mainfest.xml 进行配置, Mainfest 文件是插件的重要配置文件,其中暴露了插件启动方式以及插件启动时所依赖的程序集或其它资源的信息.一个完整的Mainfest 文件的信息如下 节点 Bundle 描述插件名称[Name] xml
阅读全文
posted @ 2015-12-13 13:57
wisdo
阅读(581)
推荐(0)
编辑
摘要:
在 Mvc 中上传文件时通常使用 Html.BeginForm 标签,同时对Form 添加属性 enctype = "multipart/form-data",前端代码如下: @Html.BeginForm("Edit", "Home", null,FormMethod.Post, new { en...
阅读全文
posted @ 2015-12-13 13:29
wisdo
阅读(3379)
推荐(1)
编辑
摘要:
Java 提供两种不同的类型:引用类型和原始类型(或内置类型)。比如:Int是java的原始数据类型,Integer是java为int提供的封装类。Java为每个原始类型提供了封装类,常见的原始与对应的封装类如下: 原始类型 封装类 boolean Boolean char Character ...
阅读全文
posted @ 2015-12-13 13:04
wisdo
阅读(7624)
推荐(2)
编辑
摘要:
1.Add 操作 public bool Add(EFDataModels.User model) { try { int result=0; using (DBEntities db...
阅读全文
posted @ 2015-12-13 12:49
wisdo
阅读(566)
推荐(0)
编辑
摘要:
IList,IQeurable,IEnumble和List 的区别主要如下:1.IList(IList)会立即在内存里创建持久数据,这就没有实现“延期执行(deferred execution)”,而是一次性将数据加载进来,如果被加载的实体有关联实体(associations),此关联实体不会被加载...
阅读全文
posted @ 2015-12-13 12:17
wisdo
阅读(1241)
推荐(0)
编辑