上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页

Entity Framework (先创建数据库Model类,以及操作数据库的方法。 最后从代码生成数据库和数据库模型)

摘要: The Entity Framework (often referred to as EF) supports a development paradigm called Code First. Code First allows you to create model objects by writing simple classes. (These are also known as POCO classes, from "plain-old CLR objects.") You can then have the database created on the fly 阅读全文
posted @ 2012-07-06 13:29 imihiro 阅读(325) 评论(0) 推荐(0) 编辑

ASP.NET aspx页面中 写C#脚本; ASP.NET 指令(<%@%>);

摘要: <h2>Welcome</h2> <ul> <% for (int i = 0; i <= Convert.ToInt32(ViewData["numtime"]); i++) {%> <li><%= ViewData["Message"].ToString() %></li> <% } %> </ul>"{" 是语言的一部分,肯定要写在 <%%>中二、ASP.NET 指令(<%@%>)Master 阅读全文
posted @ 2012-07-05 15:07 imihiro 阅读(16273) 评论(0) 推荐(0) 编辑

ASP.NET MVC

摘要: Model:数据和业务规则 data and business rulesView: 结果展示 output and representationController: 把用户输入 转变成 Model能处理的数据访问localhost/Home/index.aspx,实际机制:HomeControl.cs中的 Action index;返回机制:返回Views/Controller/index.aspx总结:请求aspx时,是请求control类下的action方法 返回views时,是返回View目录下的Control类的action.aspx.入门文章C1http://www.cnblog 阅读全文
posted @ 2012-07-04 22:04 imihiro 阅读(453) 评论(0) 推荐(0) 编辑

Asp.NET DevelopmentServer 固定端口号

摘要: 2010-09-07 10:20ASP.NET Development Server 固定端口号用 ASP.NET Development Server 运行文件系统网站时,默认情况下在随机选择的 localhost 端口上调用 Web 服务器。例如,如果要测试名为 MyPage.aspx 的页,则在 ASP.NET Development Server 上运行该页时,该页的 URL 可能是:http://localhost:31544/MyPage.aspx如果要在特定端口上运行 ASP.NET Development Server,可以为此相应地配置服务器。注意 Visual Web De 阅读全文
posted @ 2012-07-02 23:56 imihiro 阅读(4167) 评论(0) 推荐(1) 编辑

Xml 根据路径和属性值获取节点

摘要: XmlDocument xmlDoc = getXmlDoc.GetXmlDocByXmlName("材料信息");//获取config目录下 材料信息.xml XmlNodeList nodeList = xmlDoc.SelectNodes("/root/talbeName[@name='主表名']");//主表节点集合获取root/tablename 并且 tablename的name属性为主表名 的节点。 阅读全文
posted @ 2012-06-28 10:34 imihiro 阅读(4186) 评论(0) 推荐(1) 编辑

C# 客户端程序打包(制作exe)

摘要: 123 阅读全文
posted @ 2012-06-27 10:27 imihiro 阅读(638) 评论(0) 推荐(0) 编辑

AE shp属性查询、空间查询 IQueryFilter和ISpatialFilter

摘要: IQueryFilter public void IQueryFilter_SpatialResolution(IFeatureClass featureClass) { IQueryFilter2 queryFilter2 = new QueryFilterClass(); //there is no with statement in C# queryFilter2.WhereClause = "STATE_NAME = 'California'"; queryFilter2.SpatialResolution = 500... 阅读全文
posted @ 2012-06-25 22:29 imihiro 阅读(4946) 评论(0) 推荐(0) 编辑

C# 字符串 包含中文

摘要: /// <summary> /// 判断字符串 是否含有中文 /// </summary> /// <param name="str"></param> /// <returns></returns> private bool ContainCHChar(string str) { int chnfrom = Convert.ToInt32("4e00", 16); int chnend = Convert.ToInt32("9fff",16); ... 阅读全文
posted @ 2012-06-25 21:20 imihiro 阅读(748) 评论(0) 推荐(0) 编辑

C# 文件夹拷贝 迭代

摘要: /// <summary> /// 文件夹拷贝 /// </summary> /// <param name="sourDir"></param> /// <param name="projectID"></param> /// <param name="programID"></param> /// <returns></returns> private static bool CopyTo(DirectoryIn 阅读全文
posted @ 2012-06-25 16:12 imihiro 阅读(322) 评论(0) 推荐(0) 编辑

C# DateTimePicker控件设置空时间

摘要: //在DateTime旁边添加一个清空按钮. private void btnClearRegTime_Click(object sender, EventArgs e) { MessageBox.Show("Text:" + dtpRegTime.Text + "\nValue:" + dtpRegTime.Value.ToString()); dtpRegTime.CustomFormat = " "; MessageBox.Show("Text:" + dtpRegTime.Text + "... 阅读全文
posted @ 2012-06-18 10:47 imihiro 阅读(2508) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页