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 / -git.migrate
Last active December 7, 2019 20:45 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
git.migrate
@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)