Tags » Entity Framework

Asp.Net MVC5 build a website DB mdf(local) first

I’ve created some time ago a local MDF file with a bunch of tables for use. So now I want to get back to it and implement it through the edmx Ado.Net template… 127 more words

Multi-Tenancy / Global Filters in Entity Framework

Multi-Tenancy / Global Filters in Entity Framework

In this article I am going to describe a method to add global filters in Entity framework. The version I used for this example is 6.1… 1,260 more words

Code

Get Server name from Entity Framework

Today, I encountered a problem. The requirement was to show Server Name from Entity Framework Connection.

Following is the solution :


public string GetServerName()
{
using (var context = new dbEntities())
{
return context.Database.Connection.DataSource;
}
}

… 13 more words
C#

Rich Domain Models and EF Core 1.1+

Introduction

If you’ve used Entity Framework before, you’ll be familiar with the process of creating entities, sets and contexts. I find that most developers tend to follow the standard Microsoft pattern for this, where entities are simply property bags, sets (DbSet) could losely be termed “repositories” and contexts (DbContext) could losely be termed “units of work”. 576 more words

.NET Core

Using Conditional Breakpoints to Filter Exceptions During Debugging

Did you know that with C# 6 you can now filter exceptions? Well, you can! Read on to find out how to make use of this handy new feature. 44 more words

Technologies

First impressions of Visual Studio 2017

​The next version of Visual Studio has finally hit RC! The version formerly known as VS “15” is now called VS2017


In the past, developers used to schedule Visual Studio installations during lunch. 107 more words

Technologies

ASP.NET AutoComplete TextBox Using jQuery AJAX

This article explains how to implement an auto-complete textbox in ASP.NET using jQuery AJAX. The following is the SQL Server Table that I will use for fetching the records to display on the auto-complete textbox. 418 more words

C#