Add project files.

This commit is contained in:
2025-06-04 12:59:27 +07:00
parent 7e2c350205
commit 5babe89a83
254 changed files with 72374 additions and 0 deletions

View File

@ -0,0 +1,13 @@
namespace ManagementApp.DBModels
{
public class DBManagement
{
public static string GetConnectionString()
{
string fp = Path.GetFullPath("Keys/");
//172.168.192.204
return string.Format(@"Server=103.150.124.135;Port=3306;Database=MResort;user=trungduong;password=TestDBPgq95b7r;CertificateFile={0};CertificatePassword=Pgq95b7r;charset=utf8mb4;", fp + "Certificate.pfx");
}
}
}

View File

@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace ManagementApp.DBModels
{
public class TypeStorageServer
{
[Key]
public int IdTypeStorageServer { get; set; }
public string TypeName { get; set; }
public TypeStorageServer()
{
IdTypeStorageServer = 0;
TypeName = string.Empty;
}
}
}

View File

@ -0,0 +1,22 @@
using System.ComponentModel.DataAnnotations;
namespace ManagementApp.DBModels
{
public class ValidationDomain
{
[Key]
public int IdValidationDomain { set; get; }
public string Protocol { set; get; }
public int PortNumber { set; get; }
public string DomainName { set; get; }
public ValidationDomain()
{
IdValidationDomain = 0;
Protocol = string.Empty;
DomainName = string.Empty;
PortNumber = -1;
}
}
}