ef-database-first Questions
4
I've been playing around with Entity Framework 7 and ASP.NET 5 for a new project I'm working on, but I've hit a roadblock. The team I'm working on uses a DBA-first approach to development; i.e. the...
Hickie asked 27/3, 2015 at 12:33
2
I have started a very simple ASP.Net MVC4 applictaion with a Database first approach (with existing DB). I have generated .edmx using ADO.Net Entity Data Model template. The process has created a x...
Gabar asked 23/11, 2012 at 14:18
2
Solved
I'm using database first and I have a switch statement that looks something like this:
switch (site)
{
case Site.One:
using (OneContext one = new OneContext())
return one.OrganizationObjects.Si...
Oodles asked 28/12, 2017 at 17:21
6
Solved
I'm using Entity Framework 4 and with a Database First binding, and EF is not generating the entities for a few of my tables. I'm not getting any errors, and no matter how many times I select the t...
Forever asked 25/5, 2011 at 16:30
2
I'm trying to automate build process for CI server of Silverlight 5 application using OpenRIA Services.
I've got database-first Entity Framework .edmx generated file from which DomainModel is gene...
Sanctimony asked 30/6, 2015 at 9:27
1
recently I've created an ASP.NET Core (Multiplatform) project and a ClassLibrary for Managing SQL Server Database models by using VS2017.
Actually we have a Database in production server and I ne...
Olympiaolympiad asked 17/7, 2017 at 16:52
1
I have a database that has a table with a 2-column primary composite key (one int, one bigint.) I have two tables that have a composite foreign key, referencing the first table's composite primary ...
Mandiemandingo asked 21/5, 2015 at 16:38
9
Is it possible to use the new Asp.net Identity with Database First and EDMX? Or only with code first?
Here's what I did:
1) I made a new MVC5 Project and had the new Identity create the new User ...
Rheo asked 12/11, 2013 at 21:13
2
Solved
I have a database already full of tables with data in them. What I have seen is that all tables have 5 columns in common:
Id-long, key
IsDeleted, bit
DateDeleted, SmallDatetime
LastUpdated, Smal...
Esposito asked 26/9, 2013 at 7:29
1
Solved
I have a problem with Navigation Properties while I'm using Inheritance (TPH - the only available at the moment in EF Core).
My hierarchy models:
public class Proposal
{
[Key]
public int Propos...
Nitrobenzene asked 23/12, 2016 at 9:49
3
Solved
We are using Entity Framework 6.0.0 and use database first (like this) to generate code from tables and stored procedures. This seems to work great, except that changes in stored procedures are not...
Viafore asked 11/12, 2013 at 11:55
3
Solved
I have a table with some relations, the program works fine until I add a new relation between this table and customer table, the ddl for PermissionCode Table (first table) is as below:
CREATE TABL...
Eveleen asked 17/10, 2014 at 13:10
2
Solved
I need to create a Web API C# application for an existing MySQL database. I've managed to use Entity Framework 6 to bind every database table to a RESTful API (that allows CRUD operations).
I want...
Heda asked 28/10, 2015 at 18:34
3
I am connecting to a database using EF database first. Therefore my models are autogenerated.
When I update a record my DateTimes are getting written as SQL type DateTime2. The production server i...
Overcritical asked 24/9, 2015 at 14:47
0
We need an option to set the ProviderManifestToken in code for a Database First Model in order to override the value from the EDMX, which defaults to "2012" for SQL Server 2012 in our particular ca...
Converted asked 22/10, 2015 at 13:53
1
Our Solution is currently based on Entity Framework Database First. We have a T4 Template that generates repository classes from the EDMX.
We are reviewing our planned approach for releasing chan...
Armrest asked 18/12, 2013 at 12:42
1
Solved
I am developing an MVC 5 application with EF 6 database first approach. Now I want my DbContext to access multiple databases based on different Users. For that matter I generated a connection strin...
Abrahamsen asked 1/10, 2015 at 11:21
2
Solved
I'm using EntityFramework 6.1.3, database-first. I am currently wishing I had chosen code-first...
I have a database with some tables. I've previously
built my edmx off of these tables. Then I ch...
Nosegay asked 22/9, 2015 at 7:55
4
Solved
I was watching some videos and tutorials for EF 4.1, and I do not understand any benefit of CodeFirst (except some if DB is very small 3-4 tables and I am lazy for creating DB first).
Mostly, the ...
Mintun asked 2/7, 2011 at 10:19
4
Solved
I'm using Database First with Entity Framework 5. We have two tables (massively simplified):
Addresses
Street
Town (etc.)
Customers
Name
BillingAddress
DeliveryAddress
AltDeliveryAddress
Wh...
Misconstruction asked 23/11, 2012 at 12:14
2
Solved
Not sure what's happened to my setup, but of late, when I update my database with new fields or new tables that have a foreign key to a particular table (Person), my database refresh picks up the n...
Rhiannonrhianon asked 31/5, 2015 at 8:10
1
Solved
I'm working on an MVC 5 application that uses Entity Framework 6.1.3. I'm trying to optimize the first call, which usually takes 1-4 seconds, by pre-generating the views. I understand why this is h...
Fer asked 23/6, 2015 at 22:23
1
Solved
I'm using EF5 with a Database-First model. And a database project in visual Visual Studio to maintain the Sql Server database schema of an application.
To update the EF model, I'm deploying the ch...
Bachelor asked 15/10, 2013 at 23:10
1
Solved
How to use Repository pattern using Database first approach in entity framework.I got some idea while going through resources available on internet but for real time applications I am not sure how ...
Perspex asked 21/5, 2015 at 13:11
2
I have created an MVC Web App using Database First. The default db for the ASP.Net Identity data is a local database. I need to change this to my sql server db which already exists. I have looked e...
Intersect asked 4/8, 2014 at 21:10
© 2022 - 2024 — McMap. All rights reserved.