-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from abdulrahmannadap/New-Update
New update
- Loading branch information
Showing
17 changed files
with
130 additions
and
171 deletions.
There are no files selected for viewing
86 changes: 0 additions & 86 deletions
86
FCommerce.DataAcsess/Migrations/20240304122601_InitialCreate.Designer.cs
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
FCommerce.DataAcsess/Migrations/20240306095803_AddImageUrlInProduct.cs
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...06095803_AddImageUrlInProduct.Designer.cs → .../20240306144830_InitialCreate.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
namespace FCommerce.Website | ||
using AspNetCoreHero.ToastNotification; | ||
using FCommerce.DataAcsess; | ||
using FCommerce.DataAcsess.Repos.UOWs; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace FCommerce.Website | ||
{ | ||
public class Configration | ||
public static class Configration | ||
{ | ||
/// <summary> | ||
/// Register Your Dependencies | ||
/// </summary> | ||
/// <param name="services">builder.Services</param> | ||
/// <param name="configuration">builder.ConfigurationS</param> | ||
public static void RegisterDependencies(IServiceCollection services,IConfiguration configuration) | ||
{ | ||
// Add services to the container. | ||
services.AddDbContext<ApplicationDbContext>(option => | ||
{ | ||
option.UseSqlServer(configuration.GetConnectionString("DbConnection")); | ||
}); | ||
services.AddNotyf(config => { config.DurationInSeconds = 10; config.IsDismissable = true; config.Position = NotyfPosition.BottomRight; }); | ||
services.AddScoped<IUnitOfWork, UnitOfWork>(); | ||
} | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.