上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 46 下一页
摘要: using System;using System.Collections;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text;using DDTek.Oracle;using 阅读全文
posted @ 2016-03-16 15:20 赤狐(zcm123) 阅读(1284) 评论(0) 推荐(0) 编辑
摘要: 第一、问题原因分析EF方面的原因:1、Code First第一次启动会对比程序中的Model与数据库表(database initializer ),生成Model与数据库的映射视图2、随着EF的开源,EF从6开始就不会包含在.net Framework中,安装.net Framework默认是不会... 阅读全文
posted @ 2016-01-07 14:29 赤狐(zcm123) 阅读(667) 评论(0) 推荐(1) 编辑
摘要: GUID(全球唯一标识)是微软使用的一个术语,由一个特定的算法,给某一个实体,如Word文档,创建一个唯一的标识,GUID值就是这个唯一的标识码.除了.Net有专门的方法生成外,JS也可以生成GUID,一般有两种方式,分别是方法一://JS生成GUID函数,类似.net中的NewID();funct... 阅读全文
posted @ 2015-12-18 14:03 赤狐(zcm123) 阅读(185) 评论(0) 推荐(0) 编辑
摘要: ---------内置函数------------select hierarchyid::GetRoot()--0xselect hierarchyid::Parse('/1/1/') --0x5AC0select cast(0x5AC0 as hierarchyid)--0x5AC0select ... 阅读全文
posted @ 2015-12-17 10:40 赤狐(zcm123) 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 问题描述:当采用EF的DbContext保存decimal类型数据到数据库,默认只会保存小数点后的前2位小数,其余均置0;例如保存101.182352152322,实际存到数据库里的数据为101.180000000000;解决方法:在创建项目DbContext时,重写DbContext.OnMode... 阅读全文
posted @ 2015-12-14 14:29 赤狐(zcm123) 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 大多数集合都在System.Collections,System.Collections.Generic两个命名空间。其中System.Collections.Generic专门用于泛型集合。针对特定类型的集合类型位于System.Collections.Specialized;命名空间;线程安全的... 阅读全文
posted @ 2015-11-26 20:52 赤狐(zcm123) 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 原因Entity的导航属性在View中使用,但是该Entity所在的Context已经在Controller中通过 using 释放掉;但是Entity又具有Deferred Query Evaluation性质,因此,导航属性对象没有被加载,从而出现上述错误。解决方案认真学习msdn教程解决方法一... 阅读全文
posted @ 2015-11-23 16:41 赤狐(zcm123) 阅读(227) 评论(0) 推荐(0) 编辑
摘要: public class Foo { public IList Strings { get; set; } } class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2015-11-06 11:11 赤狐(zcm123) 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 下面是Jquery中AJAX参数详细列表:参数名类型描述urlString(默认: 当前页地址) 发送请求的地址。typeString(默认: "GET") 请求方式 ("POST" 或 "GET"), 默认为 "GET"。注意:其它 HTTP 请求方法,如 PUT 和 DELETE 也可以使用,但... 阅读全文
posted @ 2015-10-19 14:26 赤狐(zcm123) 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 用C#输出日历,此功能可用于Ajax方式列出计划日程相关的内容,由于是C#控制输出,可以方便加上自己需要的业务处理逻辑。1.控制台输出:[csharp]view plaincopyprint?usingSystem;namespace控制台日历{classProgram{publicstati... 阅读全文
posted @ 2015-09-11 11:20 赤狐(zcm123) 阅读(377) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 46 下一页