Skip to content

Instantly share code, notes, and snippets.

@eestein
Created June 19, 2016 22:56
Show Gist options
  • Save eestein/ce6c453e806b1b1c6ed5ac43410f3687 to your computer and use it in GitHub Desktop.
Save eestein/ce6c453e806b1b1c6ed5ac43410f3687 to your computer and use it in GitHub Desktop.
[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