Skip to content

Instantly share code, notes, and snippets.

View muratbaseren's full-sized avatar
:octocat:
Coding

Murat Baseren muratbaseren

:octocat:
Coding
View GitHub Profile
@muratbaseren
muratbaseren / 1. HomeController.cs
Last active July 26, 2023 17:57
Model Kullanarak Birbiri ile Bağlantılı JQuery ile Dolan DropDownList Doldurma
// Gerekli açıklamalar kod içerisinde yapılmıştır. Veritabanı kullanılmadan,
// Fake olarak modellenmiştir. Country ve City class'larında veri üreten metotlara yer verilmiştir.
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace WebApplication8.Controllers
{
public class HomeController : Controller
@muratbaseren
muratbaseren / 1. HomeController.cs
Last active July 26, 2023 17:55
Model Kullanarak DropDownList Doldruma
// Gerekli açıklamalar kod içerisinde yapılmıştır. Veritabanı kullanılmadan,
// Fake olarak modellenmiştir. Country ve City class'larında veri üreten metotlara yer verilmiştir.
using System.Collections.Generic;
using System.Web.Mvc;
namespace WebApplication8.Controllers
{
public class HomeController : Controller
{
@muratbaseren
muratbaseren / 1. HomeController.cs
Last active July 26, 2023 17:52
ViewBag Kullanarak DropDownList Doldruma
// Gerekli açıklamalar kod içerisinde yapılmıştır. Veritabanı kullanılmadan, Fake olarak modellenmiştir.
// Country ve City class'larında veri üreten metotlara yer verilmiştir.
using System.Collections.Generic;
using System.Diagnostics;
using System.Web.Mvc;
namespace WebApplication8.Controllers
{
@muratbaseren
muratbaseren / -Button & Link Helper Methods In MVC
Last active December 7, 2019 20:47
Button & Link Helper Methods In MVC
@muratbaseren
muratbaseren / -Material Checkbox Style in MVC
Last active December 7, 2019 20:47
Material Checkbox Style in MVC
MVC projenizin genelinde kullanılan tüm Boolean(bool) tipli model property leri için
otomatik uygulanabilecek material checkbox tasarımıdır.
@Html.EditorFor ile kullanılması gerekmektedir.
@muratbaseren
muratbaseren / -TSQL-to-POCO
Last active December 7, 2019 20:48 — forked from joey-qc/TSQL-to-POCO
A simple TSQL script to quickly generate c# POCO classes from SQL Server tables and views. You may tweak the output as needed. Not all datatypes are represented but this should save a bunch of boilerplate coding. USAGE: Run this query against the database of your choice. The script will loop through tables, views and their respective columns. Re…
DECLARE @tableName VARCHAR(200)
DECLARE @columnName VARCHAR(200)
DECLARE @nullable VARCHAR(50)
DECLARE @datatype VARCHAR(50)
DECLARE @maxlen int
DECLARE @default VARCHAR(50)
DECLARE @defaultExp VARCHAR(50)
DECLARE @referenceTable VARCHAR(50)
DECLARE @sType VARCHAR(50)
@muratbaseren
muratbaseren / -String extensions for creating HTML
Last active December 7, 2019 20:51
String extensions for creating HTML
string tipine extension metotlar ekleyerek HTML taglerinin string e eklenmesini sağlayan metotlar.
@muratbaseren
muratbaseren / -Vaughn Vernon Value Objects Console Sample - Program.cs
Last active December 7, 2019 20:49
Vaughn Vernon Value Objects Console Sample
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{