首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > 数据持久性在一行代码中

数据持久性在一行代码中

  • 资源大小:730.86 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: sqlserver orm VisualStudio

资 源 简 介

doPersistence is a C# dll that persists any object to any database (SqlServer plug-in is complete). For single objects add a class attribute: [Persistable("Customers", "CustomerId", true)] //DataSource, PrimaryKeyName, UseDirectSql (if false, SPs are required)public class Customer { ... For list objects, inherit from a generic list: public class CustomerList : PersistentList The list class exposes a generic List for LINQ expressions (sorting, selecting, etc.) Bulk storage is extremely fast and can be batched. Loads can be paginated. Performance loading objects: * 500 objects in 54 milliseconds (12 milliseconds, if paginated) * ~10,000 objects/second * ~2,000 objects/second if loaded one row at a time See website (http://andrewbbrown.com) for example code. Or download zip file for working copy.

文 件 列 表

Test
doLogic
bin
doLogicCode
doPersistence
doPersistenceTest.sql
doReadme.txt
PersistenceArticle.txt
Test.sln
Test.suo
TestSite
doLogic
Customer.cs
CustomerList.cs
doLogic.csproj
Invoice.cs
InvoiceList.cs
InvoiceTest.cs
VIP VIP
0.186225s