No announcements
-
0 Votes### EF TEAM NO LONGER USES THIS FORUM ###
Our team is no longer active on this forum. You may get a response from a member that is active on the forums in general, but you should consider asking questions using one of the following resources ...
-
0 VotesEntity Framework Insert or update data if exist
i am new in EF. i need to add data if it does not exist in db else update data.i got a code but could not understand how to call it. so need a small example which tell me how could i use ... -
0 VotesAuto mocking of repository code
is there any library exist to generate mock code to test my repository which will use EF to do the crud operations. when we use mock library then we have to write code but i am ... -
0 VotesWhen EF does the join to fetch data from two tables
tell me when EF does the join to fetch data from two tables ? i know when we include keyword using (var context = new SchoolDBEntities()) { ... -
0 VotesHow to map database scalar and table value function with EF code first
looking for a example like how to map database scalar and table value function with EF code first. please give me a example code. i got a ... -
0 VotesEntity Framework: Why virtual keyword used to declare properties in DbContext
i rare use EF. so i have a question. if we do not use virtual keyword with dbset then lazy load will not work? i read a article from this ... -
0 VotesKeyword not supported : 'host' error when migration ef on POSTGRESQL
Currently I am doing database migration using MVC6 on .netcore 2.0. in my appsettings.json: { "Logging": { ...Unanswered | 1 Replies | 39 Views | Created by dartfrog83 - Sunday, October 08, 2017 7:12 AM | Last reply by Edward Z - 12 hours 15 minutes ago -
0 VotesNot Working of SimpleMembership with EF5 on VS2010 MVC4 Project
New VS2010 SP1 MVC4 Project Start the Web Application without any edit (may be some edit on web.config for connection string). Register 3 users, OK and can see ...Unanswered | 11 Replies | 115 Views | Created by Charles Li - Saturday, October 07, 2017 11:59 AM | Last reply by DA924x - Sunday, October 08, 2017 4:55 PM -
0 VotesSpecial Character Field Straße
I update a older application using EF with edmx. The SQL Database Schema is more than 15 years old and a lot of Services are connected. So i try EF 6 and a Kind ...Unanswered | 1 Replies | 44 Views | Created by HannesPreishuber - Tuesday, October 03, 2017 1:41 PM | Last reply by Bob Ding - Friday, October 06, 2017 10:01 AM -
0 VotesUse Entities/dbContext in tt/t4 template?
<#@ include file="EF6.Utility.CS.ttinclude"#> <#@ import namespace="System.Diagnostics" #> ...Answered | 4 Replies | 191 Views | Created by scascalesp - Thursday, September 07, 2017 4:31 PM | Last reply by scascalesp - Friday, October 06, 2017 8:19 AM -
0 VotesInsert data to Database by using Model edmx
I create Database in visual studio as service-based Database after I make tables i tried to connect it to Model .edmx by choose update Model from Database now when I insert data to ...Unanswered | 3 Replies | 65 Views | Created by ai_n - Wednesday, October 04, 2017 6:59 AM | Last reply by DA924x - Thursday, October 05, 2017 1:04 PM -
0 VotesChange Connection string normal to Entity Framework identity table will not work properly?
First of All i created database then i create identity table on existing table through migration, table was created successfully after that i create one more table name "Student" and create ...Unanswered | 2 Replies | 71 Views | Created by sohail naseer - Wednesday, October 04, 2017 6:14 AM | Last reply by DA924x - Wednesday, October 04, 2017 7:47 PM -
0 VotesIs entity framework good for complicated queries?
When i am trying to update data from c# code, I always call a stored procedure to do that. Is it convenient to use entity framework to update data without calling stored procedures? I know if we just ...Unanswered | 3 Replies | 76 Views | Created by Steve Parker1999 - Monday, October 02, 2017 8:58 PM | Last reply by DA924x - Wednesday, October 04, 2017 5:54 AM -
0 VotesLinq to Entities query to get conditional data.
Sir, I am developing an application using ASP.Net MVC with Entity Framework. I have the following tables: Pensioner(Id, Name,) DATA: (1, John), ...Proposed | 3 Replies | 82 Views | Created by ArunKhatri - Saturday, September 30, 2017 10:37 AM | Last reply by DA924x - Sunday, October 01, 2017 1:29 PM -
0 VotesDeleting list using unitofwork
x.Id)); unitofwork.Commit(); But it always delete in ascending order of list not descending order. I tried creating a fresh list just by adding items in descending order of ids and ...Unanswered | 5 Replies | 197 Views | Created by shafiquejs - Wednesday, August 30, 2017 12:47 PM | Last reply by DA924x - Monday, September 25, 2017 11:53 AM -
0 VotesWhy does Remove() not delete entities from database?
Hello, In trying to figure out how to delete entities from the database in Entity Framework, almost ever hit in google tells me that I need to use Remove(). As ...Unanswered | 5 Replies | 165 Views | Created by gib898 - Wednesday, September 06, 2017 11:43 PM | Last reply by Bob Ding - Monday, September 25, 2017 9:05 AM -
0 VotesNewbie here need help with Entity and Table!
Sorry to bother... I'm learning c# and found a problem that I don't know how to resolve... its about Entity connection to a local table... now I can loop using FOREACH... by curiosity I tried to make ...Unanswered | 3 Replies | 205 Views | Created by PerezGuillermo8 - Friday, September 15, 2017 9:22 PM | Last reply by Bob Ding - Monday, September 25, 2017 8:04 AM -
1 VotesSave to database entities using addtotable C#
private CoffeeShopDatabaseEntities1 cse = new CoffeeShopDatabaseEntities1(); TblProduct product = new TblProduct(); product.Descrption = ...Unanswered | 6 Replies | 296 Views | Created by _Nas - Sunday, September 03, 2017 11:57 AM | Last reply by Bob Ding - Monday, September 25, 2017 7:46 AM -
0 VotesHow to count columns having a value?
Sir, I am developing an ASP.NET MVC application using Entity Frameworks. Please help me find a solution to the following problem. I have two table as ...Unanswered | 3 Replies | 144 Views | Created by ArunKhatri - Friday, September 22, 2017 5:12 PM | Last reply by Bob Ding - Monday, September 25, 2017 3:22 AM -
0 Votesdynamically add column to my database table
hello i want dynamically add column to my database table at run time i want do that with entity framework code first in my mvc ...Unanswered | 4 Replies | 216 Views | Created by ArshamCoder - Tuesday, September 19, 2017 10:58 AM | Last reply by Bob Ding - Friday, September 22, 2017 7:30 AM -
1 VotesEF questions
I am using Code First, what's meaning for OnModelCreating function when I inherit DbContext. what requirements we need to set in OnModelCreating ...Proposed | 3 Replies | 160 Views | Created by GoyourGod - Thursday, September 21, 2017 6:57 AM | Last reply by Bob Ding - Friday, September 22, 2017 5:22 AM - Items 1 to 20 of 15771 Next ›
No announcements
