This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
数据访问组件增加EntityFramework执行sql语句的API与实现
- Loading branch information
Showing
12 changed files
with
186 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="TransactionalBehavior.cs" company="OSharp开源团队"> | ||
// Copyright (c) 2014-2015 OSharp. All rights reserved. | ||
// </copyright> | ||
// <last-editor>郭明锋</last-editor> | ||
// <last-date>2015-03-18 14:13</last-date> | ||
// ----------------------------------------------------------------------- | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
|
||
namespace OSharp.Core.Data | ||
{ | ||
/// <summary> | ||
/// 在执行数据库命令或查询期间控制事务创建行为。 | ||
/// </summary> | ||
public enum TransactionalBehavior | ||
{ | ||
/// <summary> | ||
/// 如果存在现有事务,则使用它,否则在没有事务的情况下执行命令或查询。 | ||
/// </summary> | ||
DoNotEnsureTransaction, | ||
|
||
/// <summary> | ||
/// 如果不存在任何事务,则使用新事务进行操作。 | ||
/// </summary> | ||
EnsureTransaction | ||
} | ||
} |
Oops, something went wrong.