Advertisement
StoyanGrigorov

Tag

Mar 9th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace PhotographersDB.Models
  9. {
  10.     public class Tag
  11.     {
  12.         public Tag()
  13.         {
  14.             this.Albums = new List<Album>();
  15.         }
  16.  
  17.         [Key]
  18.         public int Id { get; set; }
  19.         [Tag]
  20.         public string Label { get; set; }
  21.        
  22.         public virtual ICollection<Album> Albums { get; set; }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement