No announcements
Found 16317 threads
-
0 Votes
I need to be able to convert between an EF model's conceptual-model info and store-model info at run-time
WHAT I HAVE: Visual Basic 2019, .NET 4.6.1, Entity Framework 6.4 MY PROBLEM: I have been trying to write a tool to programmatically take ...Unanswered | 7 Replies | 1581 Views | Created by RobertGustafson - Saturday, September 5, 2020 1:06 AM | Last reply by RobertGustafson - Wednesday, September 9, 2020 3:59 AM -
0 Votes
How can a parse the resource file of a program's assembly at run-time and find the MSL metadata for the program's EF model?
WHAT I HAVE: Visual Basic 2019, .NET 4.6.1, Entity Framework MY PROBLEM: Sometimes it's useful to have a program that an convert ...Unanswered | 7 Replies | 1976 Views | Created by RobertGustafson - Sunday, August 30, 2020 3:11 AM | Last reply by RobertGustafson - Tuesday, September 8, 2020 3:43 AM -
1 Votes
wrong decimal value from database MySql
m.MyNumber) Model.MyNumber.toString("n2") Model.MyNumber.toString("C") MySql Decimal(12,2) Default collation utf8mb4_0900_ai_ci Default ...Answered | 1 Replies | 1250 Views | Created by Richard Bruner - Friday, September 4, 2020 2:08 PM | Last reply by Daniel_Zhang-MSFT - Monday, September 7, 2020 3:11 AM -
0 Votes
EF 4.0 with SQL Server 2016 Compatibility mode = 130
Currently using EF 4.0 for CRUD operations connected to SQL server 2016 with compatibility mode 110 using ObjectContext. EF generating the sql queries and passing parameter values as ...Unanswered | 3 Replies | 1863 Views | Created by NarenX - Monday, August 31, 2020 6:42 PM | Last reply by Daniel_Zhang-MSFT - Wednesday, September 2, 2020 9:42 AM -
1 Votes
How to add record from one datagrid to another datagrid
Hi All. I'm using EF in the project . The UI layer has WPF Form1 with GataGrid1 of employees that populated by selected ComboBox department value. Now I would ...Unanswered | 2 Replies | 1234 Views | Created by zleug - Sunday, August 30, 2020 7:14 PM | Last reply by zleug - Monday, August 31, 2020 12:43 PM -
0 Votes
Single Odata endpoint against to 2 databases
I have a project that uses 2 database with entityframework core. I have 2 dbcontext. Ho can I use 2 db context with single odata endpoint. I mean when I using 'expand' in odata link I can ...Proposed | 3 Replies | 1126 Views | Created by Nevel14 - Thursday, August 27, 2020 9:06 AM | Last reply by pituach - Saturday, August 29, 2020 2:25 PM -
0 Votes
InvalidOperationException trying to add records to SQLite db using Entity Framework
I had previously encountered problems when trying to reverse engineer an SQLite database using Microsoft.EntityFrameworkCore.Sqlite. (See that post here.) I was initially able to ...Unanswered | 5 Replies | 2451 Views | Created by thoatson - Wednesday, July 1, 2020 2:33 AM | Last reply by thoatson - Monday, August 24, 2020 10:32 PM -
0 Votes
Convert SQL query to Entity Framework
Hey everyone! I'm having a problem to convert existing SQL query to Entity Framework. My problem is: I have a ...Answered | 2 Replies | 1490 Views | Created by Talshper - Tuesday, August 18, 2020 7:13 PM | Last reply by Daniel_Zhang-MSFT - Friday, August 21, 2020 5:19 AM -
0 Votes
sometime child object is missing while loading the data from database using lazy loading entity framework
I am calling the find method from my repository but sometime child entity are not loading. This is happening randomly.Unanswered | 7 Replies | 2642 Views | Created by shakti baliyan - Tuesday, August 18, 2020 7:03 PM | Last reply by Cherkaoui.Mouad - Thursday, August 20, 2020 8:36 AM -
0 Votes
Storing a attribute with JSON value in CosmosDB using Entity Framework Core 3
I using EF Core Cosmos Provider in my API to consume my CosmosDB. Inside my container items in cosmos , I want a Attribute to store JSON value and also should be mapped ...Unanswered | 1 Replies | 1224 Views | Created by Mradul Karmodiya - Monday, August 17, 2020 9:30 AM | Last reply by Daniel_Zhang-MSFT - Tuesday, August 18, 2020 8:49 AM -
0 Votes
Entity Framework : A referential integrity constraint violation error while updating not nullable foreign key value
We are using Entity Framework with a unit of work and generic repository pattern following are the entities in the scenario. public class ...Unanswered | 1 Replies | 1896 Views | Created by AmolJa - Friday, August 14, 2020 11:33 AM | Last reply by Daniel_Zhang-MSFT - Monday, August 17, 2020 8:35 AM -
0 Votes
Linking Data to DataGrid in WPF
I am trying to link a Dataset to a datagrid on a WPF app. I have tried several ways the following being my latest: <DataGrid x:Name="ListGrid" ...Answered | 1 Replies | 954 Views | Created by m0cvo - Sunday, August 16, 2020 8:57 AM | Last reply by m0cvo - Sunday, August 16, 2020 12:01 PM -
0 Votes
How do I access the resource-file data for the MSL mapping file/XML?
WHAT I HAVE: Visual Basic 2019, .NET 4+, WinForms, Entity Framework MY PROBLEM: I've found that it's often convenient to be able to ...Unanswered | 5 Replies | 1142 Views | Created by RobertGustafson - Monday, April 6, 2020 3:36 AM | Last reply by RobertGustafson - Saturday, August 15, 2020 4:00 AM -
0 Votes
How do I safely update the store model (and the supporting code files) when I (graphically) make changes to the conceptual model?
WHAT I HAVE: Visual Basic 2019, .NET 4.6.1, Entity Framework MY PROBLEM: A while ago, I created an EF model for my project, model first--using ...Answered | 9 Replies | 1202 Views | Created by RobertGustafson - Monday, August 3, 2020 2:08 PM | Last reply by RobertGustafson - Thursday, August 13, 2020 3:52 AM -
1 Votes
[NotNull] Entity Attribute not working
Hi everyone, I have two differents behavior when I use Entity attribute on my Code First project. Here is the part of the code ...Answered | 3 Replies | 1373 Views | Created by arnaud.helin - Wednesday, May 6, 2020 8:31 AM | Last reply by arnaud.helin - Tuesday, August 11, 2020 11:46 AM -
22 Votes
ADO.net Entity Data Model template is missing in vs 2019 community, need help
ADO.net Entity Data Model template is missing in vs 2019 community, need helpProposed | 21 Replies | 79083 Views | Created by Naveed0070 - Monday, September 23, 2019 5:12 PM | Last reply by Neto Castillo - Tuesday, August 11, 2020 1:17 AM -
0 Votes
How do I find metadata-file XML for an EF model in the project's "resource" directory?
WHAT I HAVE: Visual Basic 2019, .NET 4.6.1, Entity Framework MY PROBLEM: Although it should, Entity Framework's DbContext doesn't provide a ...Unanswered | 5 Replies | 1195 Views | Created by RobertGustafson - Monday, August 3, 2020 1:27 PM | Last reply by RobertGustafson - Sunday, August 9, 2020 9:06 PM -
0 Votes
EF Core 2.2 - can't add new record with link to already existing another one
My POCO classes: [Table] public class Product { [Key] public int Id { get; set; } public string Name { ...Unanswered | 7 Replies | 1733 Views | Created by Senglory - Monday, July 27, 2020 10:39 AM | Last reply by Cherkaoui.Mouad - Friday, August 7, 2020 7:08 PM -
0 Votes
Is it possible to use BinaryGuid=False property with Sqlite Entity Framework connection string?
I am creating desktop application using Sqlite database and entity framework. For primary keys I have taken column as BLOB, I now want to store GUID as values in this column but as a text not as ...Unanswered | 3 Replies | 1788 Views | Created by KamalpreetSingh - Tuesday, August 4, 2020 10:52 PM | Last reply by Daniel_Zhang-MSFT - Wednesday, August 5, 2020 2:31 AM -
1 Votes
Converting and old EF project v2.0 to 4.0 I get a schema error.
I converted this project to compile in VS2019 (originally it was VS 2012). There we a number of problems ...initially there was no database so I right clicked on the ENTITY ...Unanswered | 5 Replies | 1216 Views | Created by robMerritt - Sunday, July 26, 2020 1:08 AM | Last reply by Daniel_Zhang-MSFT - Thursday, July 30, 2020 7:52 AM
No announcements