列表 第页
有关我目前的项目,我用小巧精致。一切都完美。然后,我需要在共享主机部署。其结果可以在这里看到(复制YSOD):For my current project I use Dapper. Everything perfect. Then I needed to deploy it on shared hosting. T...阅读全文
可以直接短小精悍返回数据到一个DTO / POCO,只有具有域的一个子集 - 也就是说,我可以用它不包含在数据库表中的所有列类? Can Dapper return data directly into a DTO/POCO that only has a subset of fields - ie can I it...阅读全文
我在我的SQLite数据库可为空的双列。I have a nullable double column in my SQLite database.从数据库中读取数据时(double类型的列),我想空值转换成double.NaN。When reading from the database (for column...阅读全文
我开始用短小精悍,微ORM,我用的是小巧精致的彩虹。我想测试的查询,并通过他们检索到的数据。I am starting with Dapper, the micro-ORM, and i use the Dapper Rainbow. I want to test the queries and the data r...阅读全文
我有两个类:class Foo{public int FooId { get; set; }...public Bar Bar { get; set }}class Bar{public int BarId { get; set; }public int FooId { get; set }...}当我运行查询是...阅读全文
小巧玲珑点网有一个缓存参数(布尔),但据我可以告诉的只有的东西确实是投在返回之前产生一个列表。由于每documentation:精致小巧的默认行为是执行SQL和缓冲整个读者的回报。这是理想的,在大多数情况下,因为它最大限度地减少共享在db锁,并减少了分贝网的时间。但在执行庞大的查询时,您可能需要减少内存根据需要足迹,只...阅读全文
我一直在玩短小精悍,但我不知道来处理数据库连接的最佳方式。 I've been playing with Dapper, but I'm not sure of the best way to handle the database connection. 大多数示例显示连接对象正在在示例类创建,或者甚至在每个方...阅读全文
我刚开始与小巧玲珑的工作,我似乎还没有找到的东西很简单,就像在我的数据库实体映射到一个表:I've just started working with Dapper and I don't seem to find something very simple like mapping an entity to a t...阅读全文
我有一个非常类似的问题,以小巧玲珑点网"没有列名&QUOT ; ,但答案没有让我在哪里,我需要I have a very similar question to Dapper-dot-net "no column name", but the answer there is not getting me w...阅读全文
如何小巧玲珑帮助防止SQL注入?我测试了不同的DAL技术,必须选择一个作为保护我们的网站。我倾向于小巧精致。(HTTP://$c$c.google.com/p/dapper-dot-net/),但需要一些帮助,学习有关安全解决方案 如何小巧玲珑帮助防止SQL注入?这使得它的真的,真的容易做到完全参数化的数据访问,甚至...阅读全文
如何将一去使用精致小巧与返回游标Oracle存储过程?How would one go about using Dapper with Oracle stored procedures which return cursors?var p = new DynamicParameters();p.Add("foo"...阅读全文
小巧精致含蓄地期待时,它用它的连接是开放的。为什么它不打开和关闭它本身?这是不是简单地连接管理?Dapper implicitly expects a connection to be open when it uses it. Why doesn't it open and close it itself? Wou...阅读全文
有谁知道是否可以表值参数的数据传递给存储过程用小巧精致的? Does anyone know if is possible to pass table-valued parameter data to a stored procedure with Dapper? 推荐答案现在有(N小巧玲珑1.26及更高版本),...阅读全文