zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

8 results in tag: asp.net-mvc-viewmodel

How to convert DTO to View Model and then back again?

I'm using MVC 4 with the repository pattern and unit testing also. I have a typical controller that has simple CRUD functionality. I've separated my View Models from my DTOs and I would like to know the best way to convert between the 2:...Models:...I hav...
asp.net-mvc asp.net-mvc-4 asp.net-mvc-viewmodel entity-framework repository-pattern
asked by Smithy

Pass List data along with ViewModel to view and populate list data in drop down

I have ModelView which I have created for purpose to create new record instance via view-- razor form. In controller I need to assign list data to ViewModel; IEnumerable and then pass this model along with with list data (of CategoryType) which then in vi...
asp.net-mvc asp.net-mvc-viewmodel c# entity-framework
asked by Toxic

ASP.NET MVC Details view with many display fields but a single editable field

I have a view that shows a single item with all of its fields. But I'm getting confused trying to figure out how to allow one specific field ("Status") to be updated from this view, without necessarily going into a whole other "edit" view first....How do...
asp.net-mvc asp.net-mvc-viewmodel entity-framework-6 repository-pattern
asked by Jiveman

How to add multiple records in List along with other model in view-model Linq - ASP.NET-MVC5

I am working on ASP.NET-MVC5 applications. I need to pass data model from multiple classes from controller to view so I decided it use ViewModel and use linq to assign values to the view model accordingly. Now I my model, Student can have multiple emergen...
asp.net-mvc-5 asp.net-mvc-viewmodel c# entity-framework-6 linq
asked by Toxic

asp.net mvc viewmodel entity has no key Error when trying to create view from controller

I have ViewModel class in ASP.NET-MVC application and when I am trying to create view --> to detail the records. I am getting error that entity don't have primary key. I have test invidual model classes and they are working fine, I am not what I am missin...
asp.net-mvc-5 asp.net-mvc-viewmodel entity-framework-6
asked by Toxic

What is the best practice of passing data from a controller to a view layout?

I currently have a MVC site that needs to have dynamic content on the header of every page....I currently get the required data as normal in the controller and place it in a View Model. In the view, I take the data and stick the template parts in to the V...
asp.net-mvc asp.net-mvc-viewmodel c# entity-framework-6 model
asked by Wil

how i update multiple table using viewmodel in Asp.net mvc

Employee Model...public class Employee { [Key] public int EmployeeID { get; set; } public string Name { get; set; } public virtual Department Departments { get; set; } public int DepartmentID { get; set; } }...
asp.net-mvc asp.net-mvc-viewmodel c# entity-framework-6 viewmodel
asked by Çhöçklëtý Fázi

Is it possible to create view models by out of models created from database tables using entity framework DB first approach?

Since I have started using DATABASE FIRST approach of entity framework. It's easy to catch on and interesting but there's one thing that puzzles me....In MVC we usually make view models (models with plus-minus properties so it adheres to the particular vi...
asp.net-mvc asp.net-mvc-viewmodel c# entity-framework entity-framework-6
asked by azure boy

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!