You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
663 B
34 lines
663 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text;
|
|
|
|
namespace ex_042_005_Keys_data_annotations
|
|
{
|
|
public class Cylon
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
public int FrakId
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public int Generation
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Cylon {FrakId}: {Name}, Number {Generation}";
|
|
}
|
|
}
|
|
}
|