This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Company.Application.Common.Enums | |
{ | |
/// <summary> | |
/// Projemiz içerisinde kullanacağımız tüm durumları bu class içerisinde yazarak hepsini bir araya toplamış olacağız. | |
/// Bu sayede bir durum ataması yaparken ya da kontrol gerçekleştirirken sadece bu enum'ı kullanmak yeterli olacak. | |
/// </summary> | |
public enum AppStatus | |
{ | |
//Durumlarınızı nasıl tanımlamak isterseniz o şekilde bu kısma yazabilirsiniz ben örnek olması açısından 4 adet tanımladım | |
Aktif = 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Company.Application.Common.Api | |
{ | |
#region ObjectResult | |
/// <summary> | |
/// Tipi çalışma anında belli olacak ya da kontrol etmek istemediğimiz standart tipler olacak ise bu nesne ile dönüşümüzü yapacağız. | |
/// Her bir standart ValueType için nesne oluşturmak yerine, object tipinde bir nesne oluşturup kutulama(boxing) yaparak dönüş yapacağız. | |
/// Kutulama valueType'ların referenceType lara dönüştürülmesidir. Sistem bunu otomatik olarak yapar. Bu nesne oluşturulduğun data propertisine atanacak tip sistem tarafından otomatik olarak explicit boxing işlemine tabi tutulacaktır. | |
/// </summary> | |
public class ApiResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ConnectionStrings": { | |
"DefaultConnection": "Server=localhost;Database=ApplicationDB;Trusted_Connection=True;MultipleActiveResultSets=true" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Data; | |
using System.ComponentModel.DataAnnotations; | |
namespace Company.Application.Data.Entities | |
{ | |
/// <summary> | |
/// Uygulamamızda desteklediğimiz dilleri tutan sınıfımız | |
/// </summary> | |
public class Language : EntityBase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Data; | |
using System.ComponentModel.DataAnnotations; | |
namespace Company.Application.Data.Entities | |
{ | |
/// <summary> | |
/// Firmaların bilgilerinin tutalacağı sınıf | |
/// </summary> | |
public class Organization : EntityBase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Design; | |
using Microsoft.Extensions.Configuration; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
namespace Company.Application.Data.Context | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Dto; | |
namespace Company.Application.Dto | |
{ | |
/// <summary> | |
/// Veritabanımızda bulunan firmaların üzerinde CRUD (Create, Read, Update, Delete) işlemler için organization entity mizi kullanacağız. | |
/// Bu Dto ise veritabanı ile etkileşimin son anına kadar verileri saklama ve proje içerisinde kullanma görevlerini icra edecek. | |
/// Entity lerimiz ve dto larımız arasında veri transferini ise AutoMapper yardımı ile yapacağız. | |
/// Aşağıdaki propertylerin adları organization entity içindeki propertyle ile aynı olmalı, yoksa mapper içerisinde profiller oluştururken özel kurallar yazmamız gerekir. | |
/// İsimler aynı olursa AutoMapper otomatik olarak hangi property nin Dto daki hangi propertye eşit olduğunu anlayacak ve atamaları yapacak. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Dto; | |
namespace Company.Application.Dto | |
{ | |
/// <summary> | |
/// Veritabanımızda bulunan diller üzerinde CRUD (Create, Read, Update, Delete) işlemler için language entity mizi kullanacağız. | |
/// Bu Dto ise veritabanı ile etkileşimin son anına kadar verileri saklama ve proje içerisinde kullanma görevlerini icra edecek. | |
/// Entity lerimiz ve dto larımız arasında veri transferini ise AutoMapper yardımı ile yapacağız. | |
/// Aşağıdaki propertylerin adları language entity içindeki propertyle ile aynı olmalı, yoksa mapper içerisinde profiller oluştururken özel kurallar yazmamız gerekir. | |
/// İsimler aynı olursa AutoMapper otomatik olarak hangi property nin Dto daki hangi propertye eşit olduğunu anlayacak ve atamaları yapacak. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Dto; | |
using System; | |
namespace Company.Application.Dto | |
{ | |
/// <summary> | |
/// Veritabanımızda bulunan çeviriler üzerinde CRUD (Create, Read, Update, Delete) işlemler için AppResource entity mizi kullanacağız. | |
/// Bu Dto ise veritabanı ile etkileşimin son anına kadar verileri saklama ve proje içerisinde kullanma görevlerini icra edecek. | |
/// Entity lerimiz ve dto larımız arasında veri transferini ise AutoMapper yardımı ile yapacağız. | |
/// Aşağıdaki propertylerin adları AppResource entity içindeki propertyle ile aynı olmalı, yoksa mapper içerisinde profiller oluştururken özel kurallar yazmamız gerekir. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Dto; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace Company.Application.Dto | |
{ | |
/// <summary> | |
/// Identity alt yapısını kullanarak oluşturduğumuz ApplicationRole entity miz ile gerekli CRUD işlemleri yapacağız | |
/// Bu Dto ise veritabanı ile etkileşimin son anına kadar verileri saklama ve proje içerisinde kullanma görevlerini icra edecek. |
OlderNewer