Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Table("usuarios")]
- public class Usuarios
- {
- [Key]
- [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
- public Int64 id { get; set; }
- [MaxLength(250)]
- public string email { get; set; }
- [MaxLength(250)]
- public string password { get; set; }
- [MaxLength(250)]
- public string nombre { get; set; }
- [MaxLength(250)]
- public string apellidos { get; set; }
- [MaxLength(250)]
- public string numerotelefono1 { get; set; }
- [MaxLength(250)]
- public string numerotelefono2 { get; set; }
- public DateTime created_at { get; set; }
- public DateTime updated_at { get; set; }
- //define la propidad de navegacion
- public virtual ICollection<Actividades> Actividades { get; set; }
- }
- [Table("actividades")]
- public class Actividades
- {
- [Key]
- [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
- public Int64 Id { get; set; }
- [MaxLength(100)]
- public string Nombre { get; set; }
- [Column("informacion", TypeName = "ntext")]
- [MaxLength(250)]
- public string Informacion { get; set; }
- [MaxLength(250)]
- public string Direccion { get; set; }
- public DateTime Horarioinicial { get; set; }
- public DateTime Horariofinal { get; set; }
- [MaxLength(250)]
- public string Latitud { get; set; }
- [MaxLength(250)]
- public string Longitud { get; set; }
- [MaxLength(250)]
- public string Altitud { get; set; }
- //precision = accurac
- public string Accuracy { get; set; }
- public Int64 UsuarioID { get; set; }
- public virtual Usuarios Usuario { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement