Click here to Skip to main content
14,692,225 members
Home » Discussions » .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionColumn length change using Entity Framework Code First Pin
simpledeveloper17-Mar-20 14:59
Membersimpledeveloper17-Mar-20 14:59 
AnswerRe: Column length change using Entity Framework Code First Pin
Gerry Schmitz17-Mar-20 17:22
mveGerry Schmitz17-Mar-20 17:22 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 4:28
Membersimpledeveloper18-Mar-20 4:28 
AnswerRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 0:52
mveRichard Deeming18-Mar-20 0:52 
simpledeveloper wrote:
in committing it on Git or over written by the remote branch

If you've got multiple developers generating migrations at the same time, things can get very confused. Especially if you're all using the same development database instance.

Code First Migrations in Team Environments - EF6 | Microsoft Docs[^]

simpledeveloper wrote:
Even though I made it EventComment 1000 in Database then deleted my migration file - then ran the add migration

As explained in the article above, Add-Migration doesn't look at the database; it looks at the model snapshot stored with the last migration. Manually changing the database won't cause EF to generate a migration to change it back.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 4:14
Membersimpledeveloper18-Mar-20 4:14 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 4:55
mveRichard Deeming18-Mar-20 4:55 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 9:43
Membersimpledeveloper18-Mar-20 9:43 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 9:48
mveRichard Deeming18-Mar-20 9:48 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper19-Mar-20 6:54
Membersimpledeveloper19-Mar-20 6:54 
Questionc# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 0:51
MemberUranium-23514-Mar-20 0:51 
AnswerRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 2:07
mveRichard MacCutchan14-Mar-20 2:07 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 5:37
MemberUranium-23514-Mar-20 5:37 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Dave Kreskowiak14-Mar-20 5:58
mveDave Kreskowiak14-Mar-20 5:58 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 6:35
MemberUranium-23514-Mar-20 6:35 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Dave Kreskowiak14-Mar-20 7:30
mveDave Kreskowiak14-Mar-20 7:30 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 7:11
mveRichard MacCutchan14-Mar-20 7:11 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 7:51
MemberUranium-23514-Mar-20 7:51 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 8:02
mveRichard MacCutchan14-Mar-20 8:02 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 21:42
MemberUranium-23514-Mar-20 21:42 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 21:25
MemberUranium-23514-Mar-20 21:25 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 23:10
mveRichard MacCutchan14-Mar-20 23:10 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23515-Mar-20 5:41
MemberUranium-23515-Mar-20 5:41 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan15-Mar-20 5:44
mveRichard MacCutchan15-Mar-20 5:44 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23515-Mar-20 8:40
MemberUranium-23515-Mar-20 8:40 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan15-Mar-20 9:00
mveRichard MacCutchan15-Mar-20 9:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.