Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
How would I manually set the ID of a Demo User
Author Summary
Zeke9559 is in Idaho
Post Body

I've created an application that will allow users to demo it.

App

When the user signs in as a demo, 5 demo contacts will be seeded into the DB. The application is set up so that the contacts will be displayed based on the Id (of type GUID) of the user that is currently logged in.

Example:

https://paste.mod.gg/gumexuselu.js

When creating the 5 seeded contacts, the value for the `BookUserId` equals all zeros, aka, `Guid.Empty`. I understand that I will need to manually set the Guid of the Demo User login but am unaware of the syntax to do so. I tried doing it with the userManager but could not find a method to do so in the IntelliSense.

Login.cshtml.cs:

https://paste.mod.gg/tesaqojula.cs

Author
User Disabled
Account Strength
0%
Disabled 8 months ago
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
188
Link Karma
116
Comment Karma
72
Profile updated: 3 days ago
Posts updated: 1 year ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago