ef-code-first
Code First Object not properly instantiating
I havea class department inheriting from activeentity public class ActiveEntity : Entity, IActive { public ActiveEntity()[详细]
2023-04-13 09:35 分类:问答Why doesn't a separately instantiated Func<T,bool> predicate not translate into SQL with Entity Framework?
I have an EF Code First Db context that I\'m using to query the database. I noticed some performance issues when passing in queries as Func<Product, bool>s from my Aggregate Repository and on in[详细]
2023-04-13 02:53 分类:问答How do I redirect to a page with an ID that doesn't exist yet?
Basically put, I have an action that saves a form to a database, then redirects the user to a list. From this list, the user can select a few actions.[详细]
2023-04-13 01:56 分类:问答EF Code First unidirectional One-To-Many with Data Annotations
Say I have the following POCO classes: public class Parent { public int ID { get; set; } } public class Child[详细]
2023-04-13 01:03 分类:问答Entity Framework Code First Deleting By ID Without Fetching (Generic Style)
Please tell me if this is a decent approach to deleting an Entity with开发者_高级运维out fetching it given I have the ID.[详细]
2023-04-13 00:05 分类:问答Database Calculations - MVC 3 and CodeFirst
I\'m trying t开发者_如何学Co write a method that generates multiple commission slips. This is for a college, where clients are enrolled with tutors in a class called Enrollments. With this method, I a[详细]
2023-04-12 20:41 分类:问答EF Code First - Fluent API (WithRequiredDependent and WithRequiredPrincipal)
I have the following class: public class User { public Guid Id { get; set; } public string Name { get; set; }[详细]
2023-04-12 18:18 分类:问答EF 4.1 Code First modify generated SQL query
I am using EF Code First to perform queries on the database. However, I would like to modify the generated SQL commands by CF to add extra things to the SQL Server DB. Is it possible to chang开发者_开[详细]
2023-04-12 18:10 分类:问答Entity Framework Design - Multiple "Views" for the data
I have a design question related to Entity Framework entities. I have created the following entity: public class SomeEntity {[详细]
2023-04-12 15:19 分类:问答How to enable access to all sites with ASP.NET Membership
I\'ve downloaded an example how we canimplement Membership Provider in Entity Framework code first from Imar Spaanjaars\'s blog[详细]
2023-04-12 07:34 分类:问答