Bright Leopold

i come from the other world,i will go back after the love,the regret,the alive and the dead are over

导航

2010年7月11日

web.config connectionStrings 数据库连接字符串的解释(转载)

摘要: 先来看一下默认的连接SQL Server数据库配置<connectionStrings> <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User I... 阅读全文

posted @ 2010-07-11 08:09 Bright Leopold 阅读(69315) 评论(6) 推荐(15)

改善sql字符串的可读性 - sql字符串常见编写风格

摘要: 所谓的动态sql,就是在t-sql字符串内的sql,而静态sql就是直接写在t-sql 存储过程内的。动态sql的好处是可以写出非常复杂的,表达能力很强的sql,并且,因为某些条件下sql更简单,因此号称效率更好。而静态sql的好处在于可以调试,可以代码提示。不管怎样,我发现我们的sql很多都是动态的。尤其是在sqlserver缺乏分页支持的sql2000,很多需要分页的存储过程都是这样的。动态s... 阅读全文

posted @ 2010-07-11 08:04 Bright Leopold 阅读(830) 评论(0) 推荐(1)

C#类、接口、虚方法和抽象方法-接口与抽象类的区别实例

摘要: 1.抽象类可以有实现(包括构造函数),而接口不可以有任何实现。namespace ConsoleApplication1 { class Program { interface IMyInterface1 { void IMethod1(); void IMethod2(); } abstract class AMyClass1 { public abstract void A... 阅读全文

posted @ 2010-07-11 07:57 Bright Leopold 阅读(1103) 评论(1) 推荐(2)