IUser user = // retrieve user from database string email = user.Email;
IUser user = // retrieve user from database user.Password = newPassword;
IUser user = // retrieve user from database bool isAdmin = user.IsAdmin;The package library that contains the IUser interface will depend on the application framework being used. For example, in ASP.NET Identity, the IUser interface is part of the Microsoft.AspNet.Identity.Core package. In other frameworks, it may be part of a different package or library.