Database connection with ADO

This commit is contained in:
Spudnut2000
2025-06-11 22:54:55 -05:00
parent b20b026aff
commit 6324c85080
8 changed files with 117 additions and 3 deletions

View 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; }
}