Using YaStringLength and YaRequired
This commit is contained in:
parent
7d9495e326
commit
9457ba71d1
62 changed files with 396 additions and 150 deletions
|
|
@ -6,13 +6,14 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||
namespace Yavsc.Models.Payment {
|
||||
using Yavsc;
|
||||
using Relationship;
|
||||
using Yavsc.Attributes.Validation;
|
||||
|
||||
public class PayPalPayment : IBaseTrackedEntity
|
||||
{
|
||||
[Required,Key]
|
||||
[YaRequired,Key]
|
||||
public string CreationToken { get; set; }
|
||||
|
||||
[Required]
|
||||
[YaRequired]
|
||||
public string ExecutorId { get; set; }
|
||||
[ForeignKey("ExecutorId")]
|
||||
public virtual ApplicationUser Executor { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue