Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged ef

0 votes
430 views
1 answer
    In my entity framework Seed method I have the following line to get a file from a different project: var filePath = ... How can I get the path? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
489 views
1 answer
    I run this query: context.Database.SqlCommand("SET IDENTITY_INSERT [Songs] ON;"); just before I do the .Add() ... Server CE 4 for my database. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
523 views
1 answer
    I have columns in my database that EF put in for me, that are classname followed by _Id. However ... the 2 apparently inconsistent conventions? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
439 views
1 answer
    After installing Visual Studio 2012 Ultimate on Windows 8, SSDT via SQL Server Object Explorer did not work. The solution ... 6.0.1 code first. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
380 views
1 answer
    I am developing with EF 4.3.1 CodeFirst. I have an Airport table as shown below: public class Airport { [Key] ... } } How can this be achieved? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
636 views
1 answer
    I'm using Entity Framework Core 2.1.2 with lazy loading enabled and am performing a query using AsNoTracking. I' ... posted an issue there too.) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
331 views
1 answer
    I'd like to amend the SQL that's being generated by EF:CF when generating the database schema (DDL), ... find anything appropriate via Google. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
445 views
1 answer
    I am fairly new to using Code First approach with entity framework and I know that I you have a many ... relationships with extra data fields?? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
514 views
1 answer
    I use entity framework migration (in Automatic migration mode). Everything is okay, but I have one question ... BuyingItem in different Parcels? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
411 views
1 answer
    DB has a table PackagingInfo. I have a Package class, and a ShopEntities : DbContext. // Entity (ex. ... the annotation code-first style. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
318 views
1 answer
    EF 4.1 synchronises reverse associations when you create your instances. Is there any documentation of or best practices ... .Add(new Post()); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
410 views
1 answer
    I have a class that I want to keep meta data for -- there a several interaction scenarios so meta allows me to ... as soon as SO allows me to. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
630 views
1 answer
    For my surprise, using the CreateDatabaseIfNotExists context initializer, the line context.Database.Initialize(true) doesn't ... thrown by EF? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
403 views
1 answer
    I know this isn't the most ideal solution, but I need to add an auto incrementing field to one of my EF ... DB that its auto incrementing work? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
457 views
1 answer
    I have created an entity class in my MVC 3 application. One of the attribute named RegistryId is primary key as ... am coding classes by hand. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
479 views
1 answer
    Is there any way to apply "HasQueryFilter" globaly to all my entity ? I don't want to add in modelbuilder ... HasQueryFilter(p => p.IsActive); See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
400 views
1 answer
    I am using this Entity class with Entity Framework 5 Code First: public class Survey { [DatabaseGenerated( ... using the repository pattern. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
520 views
1 answer
    Is is possible to map a many to many relationship without having a navigation property on one of the ends? For ... was another way around this. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
974 views
1 answer
    I added EntityFramework.Migrations (Beta 1) to an existing Code-First app that is going through some changes ... -Database command was executed. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
702 views
1 answer
    I have two tables a parent and a child table. The child table has a column sortorder (a numeric value). Because ... ..) on the child collection. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
305 views
1 answer
    include matchparticipants is not working. It always says Null when I debug. But when I put the GroupBy in comment ... I make the Include work? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...