source: PostgreSqlDotnetCore/Models/Pet_CaresClass.cs@ ae6c071

main
Last change on this file since ae6c071 was ae6c071, checked in by ElenaMoskova <elena.moskova99@…>, 6 weeks ago

Аutomating the process

automating the process of updating the list of veterinary centers

  • Property mode set to 100644
File size: 999 bytes
RevLine 
[2aea0fd]1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.ComponentModel.DataAnnotations.Schema;
5using System.Linq;
6using System.Web;
7
8namespace PostgreSqlDotnetCore.Models
9{
10 [Table("pet_cares", Schema = "project")]
11 public class Pet_CaresClass
12 {
13 [Key]
14 public int id { get; set; }
15
16 // [Required(ErrorMessage = "The customer name is required")]
17 public string title { get; set; }
18 //[Required(ErrorMessage = "The customer lastname is required")]
19 public string description { get; set; }
20 public DateTime dateending { get; set; }
[ae6c071]21
22 public DateTime start_date { get; set; }
23
24 public void SetDatesToUtc()
25 {
26 dateending = DateTime.SpecifyKind(dateending, DateTimeKind.Utc);
27 start_date = DateTime.SpecifyKind(start_date, DateTimeKind.Utc);
28 }
[2aea0fd]29 public int usersid { get; set; }
30 public int vetcentersid { get; set; }
31
32
33 }
34}
Note: See TracBrowser for help on using the repository browser.