With the new Version 7, Entity Framework is moving away from legacy systems and duplications which have accumulated in recent years. As a slim-line new development it will be available for .NET Core, and therefore also WinRT, whilst in addition allowing access to NoSQL databases.This session will show exactly what has changed and how you can benefit from the new possibilities.
اشتراکها
نگاهی به EF7 RC1
اشتراکها
نگاهی به Entity Framework 7 چندسکویی
There is quite a bit of Entity Framework and NHibernate comparisons on
the web already but all of them cover mostly the technical side of the
question. In this post, I’ll compare these two technologies from
a Domain Driven Design perspective. I’ll step through several code
examples and show you how both of these ORMs let you deal with problems.
منابعی برای مطالعهی بیشتر
- Conditional INSERT/UPDATE Race Condition
- “UPSERT” Race Condition With MERGE
- آسیبپذیری Race Condition در آکادمی لیان
- Race Condition in Web Application
- Processing Data Queues in SQL Server with READPAST and UPDLOCK
- PostgreSQL anti-patterns: read-modify-write cycles
- PHP Race Condition Vulnerability Example
- Application Locks (or Mutexes) in SQL Server 2005
- Handle Race Conditions / Concurrency in Code First Entity Framework Applications
- در این مثال در حالت پیشفرض READ COMMITTED isolation level تراکنش، هرچند وجود UPDLOCK ضروری است، اما کافی نیست و باید به همراه HOLDLOCK هم باشد، تا اثر آن تا پایان تراکنش باقی بماند تا هم select و هم update، در حالتهای پردازش موازی، هر دو تحت کنترل قرار گیرند.
- روش اضافه کردن خودکار این hintها به تمام کوئریهای EF، با استفاده از Interceptorها، بدون نیاز به SQL نویسی مستقیم و عدم استفاده از LINQ: « بهبود عملکرد SQL Server Locks در سیستمهای با تعداد تراکنش بالا در Entity Framework »
- چند کتابخانه بر اساس Moq مخصوص اینکار تهیه شدهاند:
+ از قسمت اول این سری: « ... از واژههای متناظر با Mock objects ... مانند Fakes که در حقیقت یک نمونه پیاده سازی واقعی، اما غیرمناسب محیط واقعی و
اصلی پروژهاست. برای نمونه EF Core به همراه یک نمونه in-memory database
هم هست که دقیقا با مفهوم Fakes تطابق دارد... » و نمونهای از پیاده سازی آن: « شروع به کار با EF Core 1.0 - قسمت 15 - نوشتن آزمونهای واحد»