Tags » Entity Framework

Retrieve table data from stored procedure using entity framework

var result = db.GetCountryListSP();//Send parameters too

var countryList = dbContext.Database.SqlQuery<CountryName>(“”).ToList();

source: https://stackoverflow.com/questions/32754315/retrieve-table-data-from-stored-procedure-using-entity-framework?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Entity Framework

Entity Framework 6, database-first with Oracle

I spent a lot of time trying to find out how to implement Entity Framework 6 database-first scenario with Oracle database. It’s not as straightforward as you might think. 661 more words


ASP.NET Core 2: Using SQLite as a light weight database

Azure is a great place to store your data of any size, but sometimes that may not be possible for a number of reasons. In this article I’ll show you how to use Microsoft Entity Framework Core (EF) and SQLite to create and store a small amount of data. 276 more words

Visual Studio

DbContext y IDisposable

Me gusta llamar a DbContext “la pieza central de Entity Framework” y no lo digo como una broma, sin duda sabemos que para trabajar con el esquema de nuestra base de datos, debemos usar el DbContext (ya sea que para agregar propiedades de DbSet o utilizando la API Fluente), pero también para trabajar con datos utilizaremos el DbContext, o más específicamente, la clase que hereda de DbContext, es decir, la clase que llamamos Context. 274 more words

.net Core

DbContext and IDisposable

I like to call the DbContext “the centerpiece of Entity Framework” and I do not say it as a joke, we certainly know that in order to work with the schema of our database, we must use the DbContext (be it adding DbSet properties or using the Fluent API), but also to work with data we will use the DbContext, or more specifically, the class that inherits from DbContext, that is, the class that we call Context. 275 more words

Entity Framework Core

Instalando Entity Framework Core 2 fuera de .NET Core

Para utilizar Entity Framework Core, no necesitamos .NET Core, podemos instalar Entity Framework Core 2 en cualquier implementacion de .NET que sea compatible con .NET Standard 2.0. 1,231 more words

Entity Framework Core

Installing Entity Framework Core 2.0 outside of .NET Core

If we want to use Entity Framework Core 2, we don’t need .NET Core, we can install Entity Framework Core 2.0 in any .NET implementation that’s implements .NET Standard 2.0. 1,206 more words

Entity Framework Core