refact and login
This commit is contained in:
parent
acc34aeee4
commit
e042e34bf7
78 changed files with 2492 additions and 50576 deletions
|
|
@ -8,9 +8,9 @@ namespace Yavsc.Models.Relationship
|
|||
public class Location : Position, ILocation {
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
[YaRequired(),
|
||||
[Required(),
|
||||
Display(Name="Address"),
|
||||
MaxLength(512)]
|
||||
public string Address { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Yavsc.Models.Relationship
|
|||
/// <summary>
|
||||
/// The longitude.
|
||||
/// </summary>
|
||||
[YaRequired(),Display(Name="Longitude")]
|
||||
[Required(),Display(Name="Longitude")]
|
||||
[Range(-180, 360.0)]
|
||||
|
||||
public double Longitude { get; set; }
|
||||
|
|
@ -20,9 +20,9 @@ namespace Yavsc.Models.Relationship
|
|||
///
|
||||
/// The latitude.
|
||||
/// </summary>
|
||||
[YaRequired(),Display(Name="Latitude")]
|
||||
[Required(),Display(Name="Latitude")]
|
||||
[Range(-90, 90 )]
|
||||
public double Latitude { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue