Skip to content

Joshua's Blog

My Interests, Research Things I Like Sharing With People

Recent Posts

  • Import Data Into Power BI using REST/Logic Apps
  • Get Amazon Alexa Notifications For PS5
  • Find Available Game Consoles With Bots
  • Alexa Wedding Table Planner
  • The Enterprise Blockchain

Recent Comments

    Archives

    • April 2021
    • February 2021
    • December 2020
    • September 2020
    • March 2018
    • July 2017
    • June 2017
    • April 2017
    • July 2016
    • June 2016
    • November 2015

    Categories

    • About Me
    • Attending Events
    • Extensions & Frameworks
    • Front End Development
    • Online Development
    • Projects
    • Software Development
    • Useful Code Snippets

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Category: Useful Code Snippets

    Some create quick code snippets to speed up development!

    Quickly Create C# Models From MS Sql Query

    Check this out! Got large database tables? have to create a model? done, just change the datatypes to the correct datatypes in the c# model and the below code will do the rest

    SELECT 'public', DATA_TYPE, COLUMN_NAME, '{ get; set; }'
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'MyTableName'
    Posted on 11th April 201713th April 2017Categories Useful Code SnippetsLeave a comment on Quickly Create C# Models From MS Sql Query
    Proudly powered by WordPress