English 中文(简体)
微软企业图书馆5.0 数据存取——是否可以“按实例排列”功能?
原标题:Microsoft Enterprise Library 5.0 Data Access - is it possible to do "query by example" functionality?

由于我们在可预见的将来与储存程序结婚,因此在工作时使用数据存取申请区5.0。 我喜欢此处所包括的简单明了和地图板,但我所回避的是,似乎没有办法具体指明一系列参数,甚至更某种“按实例排列”物体,而储存程序则要求自动根据你的标准确定参数。 • mag探客户特征,你可以具体指明需要搜索的一个或多个特性(完全假定我们已经建立了有可无用地的储存地)。

我想做的是:

var customerQuery = new { FirstName = "John", LastName = "Doe" }
var result = db.ExecuteSprocAccessor("SearchCustomers", customerQuery);

匿名物体进入

是否像这种可能性一样? 我在“MSDN”上看到的例子似乎只是以手方式表明个别参数,而没有任何参数。

问题回答




相关问题
SQL Compact allow only one WCF Client

I write a little Chat Application. To save some infos like Username and Password I store the Data in an SQL-Compact 3.5 SP1 Database. Everything working fine, but If another (the same .exe on the ...

SqlBulkCopy with SqlHelper class

I ve installed DataAccessApplicationBlock.msi and I got the Microsoft.ApplicationBlocks.Data.dll file into my bin folder. I found every other sqlhelper methods except ExecuteBulkCopy. How do I add ...

What exactly is "persistence ignorance"?

Persistence ignorance is typically defined as the ability to persist & retrieve standard .NET objects (or POCOs if you really insist on giving them a name). And a seemingly well accepted ...

Linq to DataTable without enumerating fields

i´m trying to query a DataTable object without specifying the fields, like this : var linqdata = from ItemA in ItemData.AsEnumerable() select ItemA but the returning type is System.Data....

Data Access object: Singleton or many small ones?

When developing an application (web, win, whatever) which does alot of data access, is it better to keep your data access object open for the length of the request (i.e. do many things in a row, then ...

Server control/data access best practice?

Is it better to access data from within the web parent app and pass the necessary data to the control and back via properties, or pass a reference or url pointer (of webservice) to control and let it ...

热门标签