Created
June 19, 2016 22:56
-
-
Save eestein/ce6c453e806b1b1c6ed5ac43410f3687 to your computer and use it in GitHub Desktop.
This file contains 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("Telephones", Schema = "MyAppSchema")] | |
public class Telephone : EntityBase | |
{ | |
/// <summary> | |
/// Id | |
/// </summary> | |
public int TelephoneId { get; set; } | |
/// <summary> | |
/// DDI do número de telefone | |
/// </summary> | |
public int CountryCode { get; set; } | |
/// <summary> | |
/// DDD do número de telefone | |
/// </summary> | |
public int AreaCode { get; set; } | |
/// <summary> | |
/// Número de telefone | |
/// </summary> | |
public int Number { get; set; } | |
/// <summary> | |
/// Indica se é o padrão | |
/// </summary> | |
public bool IsDefault { get; set; } | |
/// <summary> | |
/// Tipo da linha | |
/// </summary> | |
public TelephoneType Type { get; set; } | |
/// <summary> | |
/// Indica se o número de telefone foi validado. | |
/// OBS: Válido apenas para linhas móveis | |
/// </summary> | |
public bool IsValidated { get; set; } | |
/// <summary> | |
/// Código de validação do telefone | |
/// </summary> | |
public int? ValidationCode { get; set; } | |
/// <summary> | |
/// ID do usuário dono do telefone | |
/// </summary> | |
public int? UserOwnerId { get; set; } | |
/// <summary> | |
/// Perfil do usuário dono do telefone | |
/// </summary> | |
[ForeignKey("UserOwnerId")] | |
public User UserOwner { get; set; } | |
/// <summary> | |
/// ID da empresa dona do telefone | |
/// </summary> | |
public int? CompanyOwnerId { get; set; } | |
/// <summary> | |
/// Empresa dona do telefone | |
/// </summary> | |
[ForeignKey("CompanyOwnerId")] | |
public Company CompanyOwner { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment