Skip to content

Instantly share code, notes, and snippets.

View ebicoglu's full-sized avatar
:octocat:
Full stack developer

Alper Ebiçoğlu ebicoglu

:octocat:
Full stack developer
View GitHub Profile
@ebicoglu
ebicoglu / command-prompt.reg
Last active April 22, 2024 02:45
Useful developer Windows right click items (context menu)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *\command]
@="cmd.exe /s /k pushd \"%V\""
@ebicoglu
ebicoglu / TSQL-to-C#-POCO-Generator
Last active April 21, 2024 09:28
Generates C# POCO classes from a SQL Server Database. Run this query against the database and the script will loop through tables, views and generate all entities.
/* USAGE:
Run this query against the database
The script will loop through tables, views and generate all entities.
*/
DECLARE @CONFIG_SHOULD_CONVERT_TO_SINGULAR_TABLE_NAME BIT = 1;
DECLARE @tableName varchar(200)
DECLARE @columnName varchar(200)
DECLARE @nullable varchar(50)
@ebicoglu
ebicoglu / override-login-page.md
Created June 17, 2020 19:41
Customizing ABP commercial login page

Create a new Login.cshtml under Pages\Account folder

Login.cshtml

@page
@using Microsoft.AspNetCore.Mvc.Localization
@using Volo.Abp.Account.Localization
@model Acme.BookStore.Pages.Account.CustomLoginModel
@inject IHtmlLocalizer<AccountResource> L
@ebicoglu
ebicoglu / passwordless-token-provider.md
Last active March 24, 2024 15:12
Implementing Passwordless Authentication in ASP NET Core Identity

Implementing Passwordless Authentication in ASP.NET Core Identity

To allow a user login with a magic URL, you need to implement a custom token provider. I'll show you how to add a custom token provider to authenticate a user with a link.

Step-1

Create a class named PasswordlessLoginProvider in your *.Web project.

PasswordlessLoginProvider.cs

@ebicoglu
ebicoglu / DemoDataSeedContributor.cs
Created November 7, 2023 07:53
This is a sample ABP class that seeds your DB with dummy editions, tenants, roles, users and organizations. This class implements `IDataSeedContributor`, therefore, `DbMigrator` will add the specified data to your DB.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Bogus;
using Volo.Abp;
using Volo.Abp.Auditing;
using Volo.Abp.AuditLogging;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
@ebicoglu
ebicoglu / bio.md
Created August 29, 2023 08:07
Bio

Alper Ebiçoğlu

Biography

I've been a passionate .NET software architect since the early 2000s. I am the co-founder of Volosoft Company, which creates open-source stuff, tools and frameworks for .NET developers.

Talks

@ebicoglu
ebicoglu / ecommerce-uygulamasi.md
Last active August 1, 2023 14:50
Case study for intern students — https://volosoft.com/career

Proje basit bir e-ticaret uygulaması ve toplamda 3 adet sayfadan oluşuyor. Bunlardan 1. ve 2. sayfalar ana menüden erişilebilecek, 3. sayfa ise sağ üstte yer alan "Sepetim" düğmesiyle açılacak.

  1. Ürün yönetim sayfası: Bu sayfada yeni ürünler yaratılabilecek, düzenleme ve silme işlemleri olacak. Ürünün aşağıdaki özellikleri olacak.

    • Ürünün adı,
    • Fiyatı,
  • Stok adet miktarı,

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Volosoft Bilişim A.Ş and its affiliates (“Volosoft”) for Your contributions to Volosoft open-source projects. This Agreement is effective as of the latest signature date below.

  1. Definitions: “Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Volosoft under this Agreement. “Project” means any of the projects owned or managed by Volosoft in which software is offered under
@ebicoglu
ebicoglu / top-10-best-libraries-for-net-developers.md
Created April 11, 2023 01:56
Top 10 .NET Core Libraries List That Every Developer Must Know
@ebicoglu
ebicoglu / BookStoreTenantDatabaseMigrationHandler.cs
Last active February 2, 2023 19:17
New migration handler that came in v4.3.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus.Distributed;
using Volo.Abp.Identity;
using Volo.Abp.MultiTenancy;