Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Migrations #62

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Inflow.Api/Extensions/ConfigureServicesExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using DiyorMarket.Infrastructure.Persistence.Repositories;
using DiyorMarket.Services;
using DiyorMarket.Services;
using Inflow.Domain.Intefaces.Services;
using Inflow.Domain.Interfaces.Repositories;
using Inflow.Domain.Interfaces.Services;
using Inflow.Infrastructure;
using Inflow.Infrastructure.Persistence.Repositories;
using Microsoft.EntityFrameworkCore;
using Serilog;

Expand Down Expand Up @@ -61,7 +61,7 @@ public static IServiceCollection ConfigureDatabaseContext(this IServiceCollectio
var builder = WebApplication.CreateBuilder();

services.AddDbContext<InflowDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("DiyorMarketConection")));
options.UseSqlServer(builder.Configuration.GetConnectionString("InflowConnection")));

return services;
}
Expand Down
2 changes: 1 addition & 1 deletion Inflow.Api/Inflow.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<InvariantGlobalization>false</InvariantGlobalization>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions Inflow.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"InflowConnection": "Data Source=DESKTOP-B7KIDHK\\SQLEXPRESS02;Initial Catalog=Inflow;Integrated Security=True;Trust Server Certificate=True"
},
"AllowedHosts": "*"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class CategoryEntityConfiguration : IEntityTypeConfiguration<Category>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class CustomerEntityConfiguration : IEntityTypeConfiguration<Customer>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class ProductEntityConfiguration : IEntityTypeConfiguration<Product>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
public class SaleEntityConfiguration : IEntityTypeConfiguration<Sale>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class SaleItemEntityConfiguration : IEntityTypeConfiguration<SaleItem>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class SupplierEntityConfiguration : IEntityTypeConfiguration<Supplier>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class SupplyEntityConfiguration : IEntityTypeConfiguration<Supply>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class SupplyItemEntityConfiguration : IEntityTypeConfiguration<SupplyItem>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Inflow.Domain.Entities;
using Microsoft.EntityFrameworkCore;

namespace Inflow.Infrastructure.Configurations
namespace Inflow.Infrastructure.Persistence.Configurations
{
internal class UserEntityConfiguration : IEntityTypeConfiguration<User>
{
Expand Down
Loading
Loading