allow RdvQueryProviderInfo to be deserialised

vnext
Paul Schneider 5 years ago
parent 5178629314
commit 4fbd2015a7
4 changed files with 23 additions and 17 deletions

@ -1,21 +1,22 @@
using System;
using Yavsc.Abstract.Identity;
using Yavsc.Models.Relationship;
namespace Yavsc.Models
{
public class RdvQueryProviderInfo
{
/// <summary>
/// User querying
/// </summary>
/// <value></value>
public ClientProviderInfo Client { get; set; }
public ILocation Location { get; set; }
public Location Location { get; set; }
public long Id { get; set; }
public DateTime? EventDate { get; set; }
public decimal? Previsional { get; set; }
public string Reason { get; set; }
public string ActivityCode { get; set; }
public string BillingCode { get; set; }
}

@ -0,0 +1,16 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Relationship
{
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; }
}
}

@ -1,10 +1,8 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Relationship
{
/// <summary>
/// Position.
/// </summary>
@ -27,13 +25,4 @@ namespace Yavsc.Models.Relationship
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; }
}
}

@ -1 +1 @@
1.0.6-rc08
1.0.6-rc09

Loading…