Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Entity Framework de katmanl mimari kullanarak ve personel ve personellere ait bilgileri tuttu umuz yap lar m z var.Fluent api ile mapping i lemlerini yapaca

Entity Framework de katmanl mimari kullanarak ve personel ve personellere ait bilgileri tuttuumuz yaplarmz var.Fluent api ile mapping ilemlerini yapacaz. DBSet, Dbcontext kullancaz. bu ilemleri business ve data katmannda yaptktan sonra mssql e verileri gndermi olucaz. Daha sonra form ile kullancya data grid view ile kullancya bilgileri getircez. Daha sonra update delete add ve filter gibi ilemleri yapcaz. Bu filtrelemeyi name e gre id ye gre vs yapabiliriz. Ben yaptm kadarn sana atacam sende doruysa zerine eklersin yanlsa da silersin.
ncelikle Solution mzn ismi Personel.EFCoreApp .
Domain de snflarmz tanmladm. Dier class library miz Personel.EFCoreBAL, Personel.EFCoreDAL ve Personel.EFCore.UI.
DOMAIN CLASS LIBRARY unlar tanmland.
// PERSONELS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Personel.EFCore.Domain
{
public class Personels
{
public int PersonelID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string IdentityNumber { get; set; }
public DateTime? BirthDate { get; set; }
public int GenderID { get; set; }
public int DepartmentID { get; set; }
public bool IsActive { get; set; }
public string FullName => $"{FirstName}{LastName}";
public Department Department { get; set; }
public Gender Gender { get; set; }
public PersonelDetail PersonelDetail { get; set; }
}
}
// PERSONEL DETAIL
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Personel.EFCore.Domain
{
public class PersonelDetail
{
public int PersonelDetailID { get; set; }
public int PersonelID { get; set; }
public Personels Personel { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public string Address { get; set; }
public ICollection

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

ISBN: 978-0764535376

More Books

Students also viewed these Databases questions

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago