allow RdvQueryProviderInfo to be deserialised

This commit is contained in:
2019-09-18 01:38:46 +01:00
parent 5178629314
commit 4fbd2015a7
4 changed files with 23 additions and 17 deletions

View File

@ -1,39 +0,0 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Relationship
{
/// <summary>
/// Position.
/// </summary>
public class Position: IPosition
{
/// <summary>
/// The longitude.
/// </summary>
[YaRequired(),Display(Name="Longitude")]
[Range(-180, 360.0)]
public double Longitude { get; set; }
/// <summary>
///
/// The latitude.
/// </summary>
[YaRequired(),Display(Name="Latitude")]
[Range(-90, 90 )]
public double Latitude { get; set; }
}
public class Location : Position, ILocation {
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
[YaRequired(),
Display(Name="Address"),
MaxLength(512)]
public string Address { get; set; }
}
}