Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
enisgurkann authored Dec 30, 2021
1 parent 7920b25 commit e13b7de
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# ENLOCK
Efcore with no lock extention



![alt text](https://github.com/enisgurkann/ENLOCK/blob/master/banner.PNG?raw=true)

# ENLOCK -.Net Core Entity Freamwork Core(EFCORE) With(No Lock) Tool

[![GitHub](https://img.shields.io/github/license/enisgurkann/ENLOCK?color=594ae2&logo=github&style=flat-square)](https://github.com/enisgurkann/ENLOCK/blob/master/LICENSE)
[![GitHub Repo stars](https://img.shields.io/github/stars/enisgurkann/ENLOCK?color=594ae2&style=flat-square&logo=github)](https://github.com/enisgurkann/ENLOCK/stargazers)
[![GitHub last commit](https://img.shields.io/github/last-commit/enisgurkann/ENLOCK?color=594ae2&style=flat-square&logo=github)](https://github.com/mudblazor/mudblazor)
[![Contributors](https://img.shields.io/github/contributors/enisgurkann/ENLOCK?color=594ae2&style=flat-square&logo=github)](https://github.com/enisgurkann/ENLOCK/graphs/contributors)
[![Discussions](https://img.shields.io/github/discussions/enisgurkann/ENLOCK?color=594ae2&logo=github&style=flat-square)](https://github.com/enisgurkann/ENLOCK/discussions)
[![Nuget version](https://img.shields.io/nuget/v/ENLOCK?color=ff4081&label=nuget%20version&logo=nuget&style=flat-square)](https://www.nuget.org/packages/ENLOCK/)
[![Nuget downloads](https://img.shields.io/nuget/dt/ENLOCK?color=ff4081&label=nuget%20downloads&logo=nuget&style=flat-square)](https://www.nuget.org/packages/ENLOCK/)



Entity freamwork kullanırken database kilitlenme yani lock olayını engellemek için kullandığımız transcaction scope olayını basite indirgemek için yaptığım extention dur

## Methods
FirstOrDefault,Single,ToList,Any and Async

## Efcore Provider Usage

```
PM> Install-Package ENLOCK
```


```
PM> Standart FirstOrDefault
```

```csharp

var customer = await _context
.Customers
.AsNoTracking()
.Where(x => x.Name == 'Enis' && x.Surname == 'Gürkan')
.ToFirstOrDefaultkAsync();

```

```
PM> Using ToFirstOrDefaultWithNoLockAsync
```

```csharp

var customer = await _context
.Customers
.AsNoTracking()
.Where(x => x.Name == 'Enis' && x.Surname == 'Gürkan')
.ToFirstOrDefaultWithNoLockAsync();

```


0 comments on commit e13b7de

Please sign in to comment.