Created
August 5, 2016 16:49
-
-
Save cathode/33ed7c6dafe1188e74dc2045644f8396 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Table("linking_ObjectMapping", Schema = "dbo")] | |
public class ObjectMapping | |
{ | |
[Key, Column(Order = 0)] | |
public int ObjectId { get; set; } | |
[Key, Column(Order = 1)] | |
public LinkEnvironment EnvironmentId { get; set; } | |
[Key, Column(Order = 2)] | |
public int ApplicationId { get; set; } | |
public int DatabaseId { get; set; } | |
[ForeignKey("DatabaseId, EnvironmentId")] | |
public LinkBackend Database { get; set; } | |
public LinkObject Object { get; set; } | |
public LinkApplication Application { get; set; } | |
public ObjectMapMode MappingType { get; set; } | |
public string ObjectAlias { get; set; } | |
public DateTime LastModified { get; set; } | |
public string UserName { get; set; } | |
} | |
[Table("linking_Databases", Schema = "dbo")] | |
public class LinkBackend | |
{ | |
[Key, Column(Order = 0)] | |
public int DatabaseId { get; set; } | |
[Key, Column("EnvironmentId", Order = 1)] | |
public LinkEnvironment Environment { get; set; } | |
[Column("DatabaseName")] | |
public string Name { get; set; } | |
[Column("DefaultFileLocation")] | |
public string FilePath { get; set; } | |
public string ConnectionString { get; set; } | |
public virtual ICollection<ObjectMapping> Mappings { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment