Add project files.
This commit is contained in:
13
ManagementApp/DBModels/DBManagement.cs
Normal file
13
ManagementApp/DBModels/DBManagement.cs
Normal 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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
17
ManagementApp/DBModels/TypeStorageServer.cs
Normal file
17
ManagementApp/DBModels/TypeStorageServer.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
22
ManagementApp/DBModels/ValidationDomain.cs
Normal file
22
ManagementApp/DBModels/ValidationDomain.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user