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 entity

0 votes
515 views
1 answer
    I'm a bit stumped. From what I've read setting the DbContext.AutoDetectChangesEnabled to false should disable ... 1 ProjectName:a differentName! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
476 views
1 answer
    I have a table in my database with a lot of fields. Most of the time I need all those fields. There is ... "extra" fields into a complex type. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
564 views
1 answer
    I've got multiple classes (including TPT) in my project. Each POCO has a BaseClass, which has a GUID ... convention? Thanks in advance. Andreas See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am using EF5 beta1 and while I was able to run the "Update-Database" before. Now that I shut down Visual ... not work. Can anyone help??? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
423 views
1 answer
    So I tried to use automatic migrations with my new MVC 4 Project but somehow it isn't working. I followed this ... doesn't find what. Any idea? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
866 views
1 answer
    How do I use Entity Framework 5 Code First Migrations to create a full database script from the ... -Script -SourceMigration: $InitialDatabase See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Until EF core version used in .donet core 2.2, after the .Add command, EF fills the key column with a big ... UpdatedAt { get; set; } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
579 views
1 answer
    I'm guessing this is impossible, but I'll throw it out there anyway. Is it possible to use CreateSourceQuery when ... b.Genres).ToList(); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Given the object hierarchy public class Parent { public int Id { get; set; } public virtual Child Child { ... Lambda syntax in this situation? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
650 views
1 answer
    Installed visual studio 11 beta as wanted to test EF 5 beta but keep hitting this an error. Method not found: ' ... `1.Add(TEntity entity) +72 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
750 views
1 answer
    Suppose there are two entities called Employee and Campaign. One employee can work on many campaigns. And one campaign ... when to use which? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
789 views
1 answer
    An error occurred while retrieving package metadata for 'bootstrap.3.3.5' from source 'nuget.org'. ======== ... still the service does not work See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
591 views
1 answer
    I've been looking at Applying filters when explicitly loading related entities and could not get it to work for ... to populate the collection. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
800 views
1 answer
    Is there a standard way to using Enums in EF code-first? There seems to be some examples making use of ... table manually from the enum. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
746 views
1 answer
    I have a webforms project using EF codefirst to persist data. I'd like to use a GridView and ... 'System.Data.Objects.ObjectContext'. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
686 views
1 answer
    I am getting a couple of these errors that make perfect sense as they are on views. I understand what they mean ... warnings in my Error List). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
723 views
1 answer
    Following on the heels of my other question about mocking DbContext.Set I've got another question about mocking ... handle the state changes? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
726 views
1 answer
    I'm trying to use EF 4.3 migrations with multiple code-first DbContexts. My application is separated into ... single database? Thank you! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
573 views
1 answer
    We are using Entity Framework Code First with Foreign Key relationships. We investigating on ways on handling ... from Child Collections? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
543 views
1 answer
    I have the following entities: public interface IMyEntity { [Key] int Id { get; set; } IMyDetail MyDetail { ... there any solutions for this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
524 views
1 answer
    I am not using DI and simply want to invoke a DbContext from within my controller. I am struggling to ... <ISmsSender, AuthMessageSender>(); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I have following code to add or update the Entity object. finding the object by primary key, based on the ... I fix this error message? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
466 views
1 answer
    I have two entities with a fairly standard Many to Many relationship that I created in EF 5 Code First. These ... would be very welcome. -Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
802 views
1 answer
    (From an example in the new Entity Framework book by Julia Lerman.) I have a database with two tables, Contact and ... Higher Power I can ask... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
604 views
1 answer
    I have entities Group and User. the Group entity has Users property which is a list of Users. User has a property ... ; thank you for your help! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
470 views
1 answer
    I've seen two different manners that programmers approach when creating an entity context in their code. The first ... goes out of scope? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
590 views
1 answer
    I prefer using singular nouns when naming my database tables. In EF code first however, the generated tables ... >(); } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
638 views
1 answer
    I am trying to reference a foreign key from SpouseId to Id in the Contact table. What is the syntax for doing ... is. Hope this helps someone. 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

...