yavsc/Yavsc/Models/Market/Service.cs

41 lines
1.2 KiB
C#

9 years ago
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Market {
9 years ago
using System.ComponentModel.DataAnnotations;
9 years ago
using Workflow;
9 years ago
using Yavsc.Models.Billing;
9 years ago
public class Service : BaseProduct
{
9 years ago
/// <summary>
/// An unique product identifier.
/// </summary>
/// <returns></returns>
[Key(),DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
9 years ago
public string ContextId { get; set; }
[ForeignKey("ContextId")]
public virtual Activity Context { get; set; }
/// <summary>
/// List of billing clause,
9 years ago
/// associated to this service,
/// that defines the transformation rules
/// to take in account during the transformation
/// of a corresponding prestation to an amount to pay.
/// This property is built at constructing a new instance
9 years ago
/// and is not mapped in database.
/// For the moment, it's hard coded only.
/// </summary>
/// <returns></returns>
[NotMapped]
9 years ago
public List<IBillingClause> Billing { get; set; }
9 years ago
}
9 years ago
}