Skip to content

Commit

Permalink
Create models
Browse files Browse the repository at this point in the history
  • Loading branch information
yenilikci committed Aug 8, 2021
1 parent e4fef3d commit b6e7293
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions angular-dotnetcore-postgresql/api/api/Models/Department.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace api.Models
{
[Table("department", Schema = "public")]
public class Department
{
[Key]
public int DepartmentId { get; set; }
public string DepartmentName { get; set; }
}
}
20 changes: 20 additions & 0 deletions angular-dotnetcore-postgresql/api/api/Models/Employee.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace api.Models
{
[Table("employee", Schema = "public")]
public class Employee
{
[Key]
public int EmployeeId { get; set; }
public string EmployeeName { get; set; }
public string Department { get; set; }
public string DateOfJoining { get; set; }
public string PhotoFileName { get; set; }
}
}

0 comments on commit b6e7293

Please sign in to comment.