上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: ------------------------windowform承载服务步骤:(1)定义契约:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;namespace IWpf{ [ServiceContract] public interface IUser { [OperationContract] string GetName(); [OperationContract] int GetAge(); }}(2)承载契约;us 阅读全文
posted @ 2013-07-23 20:15 aiaito 阅读(397) 评论(0) 推荐(0) 编辑
摘要: asp.net;与mvc都是不可替代的;只是多一种选择;(解决了许多asp.net的许多缺点)model:充血模型。领域模型;很大程度的封装;控制器:处理用户的交互,处理业务逻辑的调用,指定具体的视图来展示数据;mvc:其实就是前台和后台松耦合;不是集成关系了,相当于回归;到;实现了后台不干预前台业务逻辑;控制器:必须以Controller结尾;所有方法都成为acion,就是一个请求;必须实现必要三点:实现icontroller接口,不能静态;ation,(Controller结尾)每个控制器都对应自己的文件夹;控制器指定视图来展示数据,如果没有指定名字,就用当前action名字座位veiw的 阅读全文
posted @ 2013-07-23 20:14 aiaito 阅读(420) 评论(0) 推荐(0) 编辑
摘要: ------------------------------第一天(2013-3-25)1.ado.net实体模型,(Ef)2.创建上下文对象;调用相应方法,最后调用。savechanges();方法即可;3.ef:entityframework;性能不是很差,实质是生成sql脚本;在sqlserver层面上性能损耗不受影响,只是在自动化方面耗点cpu;4,根据实体的变化,在根据edmx里面的orm的映射关系生成sql,相对整个系统性能,忽略不计;5.linq和lambda都一样;爱使用哪种就使用哪种;因为编译后的二进制代码是一样定的;IQueryable col = dinnerDal.Us 阅读全文
posted @ 2013-07-23 20:10 aiaito 阅读(639) 评论(0) 推荐(0) 编辑
摘要: //郭泽峰个人总结总结(2012-12-5)://备注:当 regu是字符串时应示例对象RegExp,否则的话 var emailReg =/在此加上正则///验证邮箱function CheckEmail(strEmail) { var emailReg = /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/; if (emailReg.test(strEmail)) { return true; } else { return false; }};//验证是不是数字function IsNum(str) { //前提是str不为空! //可以是小数 if (is 阅读全文
posted @ 2013-07-22 21:20 aiaito 阅读(262) 评论(0) 推荐(1) 编辑
摘要: 很简单,如下:父页面:(弹出提示框)function newwindow(obj){var rtn = window.showModalDialog('NewPage.htm','','status=no,scrollbars=no,top=20,left=110,width=420,height=165');var div = document.getElementById("div1");div.innerHTML=rtn;}子页面:function pageinit(){var lab = document.getEle 阅读全文
posted @ 2013-07-22 21:14 aiaito 阅读(1381) 评论(0) 推荐(0) 编辑
摘要: -------------数据绑定BillBusiness bill = new BillBusiness(); DataSet ds = new DataSet(); ds=bill.GetBillEmployees(); drdlReceiveBillPerson.DataSource = ds.Tables[0]; drdlReceiveBillPerson.DataTextField = "Employee"; drdlReceiveBillPerson.DataBind();-------------gridview超链接绑定{生成模板} '> &# 阅读全文
posted @ 2013-07-22 21:00 aiaito 阅读(1300) 评论(0) 推荐(0) 编辑
摘要: 解决方案,vs的文件可能因与vs集成的软件被卸载遭到破坏。我之前卸载mysql-connector-net,再装上,vs就可以添加数据连接了。 阅读全文
posted @ 2013-04-27 11:50 aiaito 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 个人认为:在实际项目开发中,表设计需要有适量的冗余,另外不建议遵循严格的关联关系(太死,不符合实际业务需求)。在建表设立自增ID时,要考虑表复制的问题(一般手动插入自增id也可以考虑唯一标示符)! 阅读全文
posted @ 2012-11-06 12:08 aiaito 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 考虑因环境变量设置错误而导致找不到.dll文件。 阅读全文
posted @ 2012-06-02 09:49 aiaito 阅读(216) 评论(0) 推荐(0) 编辑
摘要: StreamReader sd = new StreamReader(path, Encoding.GetEncoding("gb2312"));string sd = File.ReadAllText(path,Encoding.GetEncoding("gb2312"));StreamReader sd = File.ReadAllText(path, GetEncoding("gb2312")); 阅读全文
posted @ 2012-05-28 20:32 aiaito 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页