Database connection with ADO
This commit is contained in:
22
C969Project/Data/Models/User.cs
Normal file
22
C969Project/Data/Models/User.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace C969Project.Data.Models;
|
||||
|
||||
public class User
|
||||
{
|
||||
// int id = reader.GetInt32("userId");
|
||||
// string name = reader.GetString("userName");
|
||||
// string password = reader.GetString("password");
|
||||
// int active = reader.GetInt32("active");
|
||||
// DateTime scheduled = reader.GetDateTime("createDate");
|
||||
// string createdBy = reader.GetString("createdBy");
|
||||
// var lastUpdated = reader.GetDateTime("lastUpdate"); // Timestap
|
||||
// string lastUpdateBy = reader.GetString("lastUpdateBy");
|
||||
|
||||
public int UserId { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public int Active { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime LastUpdate { get; set; }
|
||||
public string LastUpdateBy { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user