dotnetcore / dotnetcore/SmartSql
是否可以让UseTransactionAttribute 可使用在 类上,让类里面所有方法都默认使用事务
- Dominant language
- C#
- Stars
- 1.1k
- Forks
- 229
- PR merge metrics
- No merged PRs in 30d
Description
## SmartSql version
4.1.25
## Database provider and version
## Steps to reproduce
## Expected result
> namespace SmartSql.DyRepository.Annotations
> {
> [AttributeUsage(AttributeTargets.Method||AttributeTargets.Class, AllowMultiple = false)]
> public class UseTransactionAttribute : Attribute
> {
> public IsolationLevel Level { get; set; } = IsolationLevel.Unspecified;
> }
> }
## Actual result
> namespace SmartSql.DyRepository.Annotations
> {
> [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
> public class UseTransactionAttribute : Attribute
> {
> public IsolationLevel Level { get; set; } = IsolationLevel.Unspecified;
> }
> }
## Stack trace
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.