您可以用自己的 XML 配置元素来扩展标准的 ASP.NET 配置设置集。若要完成该操作,您必须创建自己的配置节处理程序。 app.config 注:section.type="path,程序集名称" namespace CustomConfigSection { public class MySectionHandler : IConfigurationSectionHandler { #region IConfigurationSectionHandler Mem
PetaPoco不需要引用dll,只需要添加一个cs文件到项目。运行效率据称也较高,比较接近原生SQL操作。 db.Query("SELECT * FROM articles"); //直接SQL语句 db.Page(1, 20, "SELECT * FROM articles WHERE category=@0 ORDER BY date_posted DESC", "coolstuff"); //分页 // Insert a record var a=new article(); a.ti