Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,
I'm new to Entity Framework. In my current project, we have made use of Entity Framework: Code First Approach

Currently we have 1 table in the DB: Incident

Following entity for the Incident:
namespace IncidentReportingMobileService.DataObjects
{
  public class Incident : EntityData
    { 
        [Required]
        [StringLength(20)]
        public string UserName { get; set; }

        [StringLength(16)]
        public string ImmediateActions { get; set; }

        .
        .
        .
    }
}

Now I need to increase the length of the column ImmediateActions to 250 characters.

How can I achieve this? What is Entity Framework Code First Migrations?

Thanks in advance
Posted
Updated 17-Aug-15 2:54am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900