TortugaResearch / DotNet-ORM-Cookbook

This repository is meant to show how to perform common tasks using C# with variety of ORMs.
https://tortugaresearch.github.io/DotNet-ORM-Cookbook/
The Unlicense
346 stars 29 forks source link

Use Case: Value Conversion #40

Open mikependon opened 4 years ago

mikependon commented 4 years ago

Query:

SELECT GETUTCDATE() AS [DateTime], NEWID() AS [Guid];

Class:

public class WhatEverClass
{
    public string DateTime { get; set; }
    public string Guid { get; set; }
}

Note: The receiving class is of different data type. We can talk and expand this further. Hopefully, you consider this proposal soon.

Grauenwolf commented 4 years ago

Yea, there's going to be lots of variants of this one. Off the top of my head...