06 2011 档案

将xml导入到oracle库里
摘要:using System;using System.ComponentModel;using System.Drawing;using System.Text;using System.Windows.Forms;using System.IO;using Oracle.DataAccess.Client;using System.Data;using System.Xml;namespace M... 阅读全文

posted @ 2011-06-28 10:23 SonyXbox 阅读(2291) 评论(0) 推荐(0)

wcf实现
摘要:///在使用app.config配置文件时///这里我比较疑惑的是在这里的参数只用写命名空间.类名或接口就可以找到是哪个dll文件了,奇怪呀,应该写上dll文件呀?不知道为什么这里不用写呀!(比如:反射)<?xml version="1.0" encoding="utf-8" ?><configuration> <system.serviceModel> <services> <!--name参数... 阅读全文

posted @ 2011-06-24 16:46 SonyXbox 阅读(165) 评论(0) 推荐(0)

wcf小实例(2)
摘要://用app.config实现wcf调用////定义contrat interfaceusing System;using System.ServiceModel;using System.Text;namespace DataSericesContract{ [ServiceContract(Name = "DataServicesContract", Namespace = "www.msdn... 阅读全文

posted @ 2011-06-23 15:53 SonyXbox 阅读(213) 评论(0) 推荐(0)

wcf小实例
摘要://///////////////////////hostusing System;using System.ServiceModel;using System.Text;///host namespace Host{ public class Host :IHost { #region IHost 成员 public string Hello() { return string.Format("... 阅读全文

posted @ 2011-06-23 10:22 SonyXbox 阅读(328) 评论(0) 推荐(0)

remoting 用app.config文件来配置
摘要:<!--服务端配置--><?xml version="1.0" encoding="utf-8" ?><configuration> <system.runtime.remoting> <application> <service> <wellknown mode="Singleton" type="DataObjSpace.DataObj,DataObj" objecturi="abc.soap... 阅读全文

posted @ 2011-06-15 17:11 SonyXbox 阅读(570) 评论(0) 推荐(0)

linq to sql 更新缓存与自动更新机制
摘要:备用: 如果在使用linq to sql 时,不想自动更新数据,如下: //var user = from u in db.createuser where u.uid>2 selece u; //var userlist = user.ToList<Users>(); 使用ToList方法转换成表,或ToArray 使用自动更新功能,就不用ToList、ToArray方法了。 比如我们查询一表,... 阅读全文

posted @ 2011-06-10 15:11 SonyXbox 阅读(620) 评论(0) 推荐(0)

linq to sql 小实例
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace LinqToSqlFrom1{ using DBSpace; using System.Data.Linq; public partial class Form1 : Form { public Form1() { Initia 阅读全文

posted @ 2011-06-10 11:16 SonyXbox 阅读(360) 评论(0) 推荐(0)

导航