The Wayback Machine - https://web.archive.org/web/20200826120003/https://github.com/topics/access
Skip to content
#

access

Here are 343 public repositories matching this topic...

2881099
2881099 commented Apr 23, 2020

本篇文章内容引导,如何在 asp.net core 项目中使用特性(注解) 的方式管理事务。

UnitOfWorkManager 只可以管理 Repository 仓储对象的事务,直接 fsql.Insert<T>() 是不行的!!

支持六种传播方式(propagation),意味着跨方法的事务非常方便,并且支持同步异步:

  • Requierd:如果当前没有事务,就新建一个事务,如果已存在一个事务中,加入到这个事务中,默认的选择。
  • Supports:支持当前事务,如果没有当前事务,就以非事务方法执行。
  • Mandatory:使用当前事务,如果没有当前事务,就抛出异常。
  • NotSupported:以非事务方式执行操作,如果当前存在事务,就把当前事务挂起。
  • Never:以非事务方式执行操作,如果当前事务存在则抛出异常。
  • Nested:以嵌套事
drewlsvern
drewlsvern commented Jul 8, 2020

I'm generating C# classes from the T4 templates. The classes are generated without errors but some back references are assigned random guids as opposed to the related table name. Is this by design? If so, why and can it be changed to reflect the correct table name property?

var result = Db.TblAccounts.LoadWith(x => x._30F767840CF546D08AC8552E413F4488)
                                   

Improve this page

Add a description, image, and links to the access topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the access topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.