0

I just noticed that in the database for the auto generated ids for the default authentication users table the id is not an integer, it is a very large string.b(GUID) here is an example: a202fc44-7319-499e-80b8-96822f5833c0

Now all of the delete methods are implemented expecting an integer id and now obviously when it passes through its id. It gives an error.

1> why is it doing the string ids in he first place? Is there any benefits in using this for a small scale application?

2> How can I change this to just use a normal auto-incremented int?

It is using code first migrations as it is implemented when I create the project. It just creates the database on the local sql server.

Zapnologica
  • 22,170
  • 44
  • 158
  • 253
  • 1
    How is your application set up? Code First? Model First? Also, what have you tried? – Flater Jan 29 '14 at 12:48
  • @JigarPatel Care to elaborate on that a lil? I would appreciate it a lot. – Zapnologica Jan 29 '14 at 18:58
  • @Zapnologica http://en.wikipedia.org/wiki/Globally_unique_identifier and also http://msdn.microsoft.com/en-us/library/system.guid.aspx I don't know how your project is setup but I assume it is generating guid as a id. – Jigar Patel Jan 29 '14 at 19:00

0 Answers0