34 lines
741 B
C#
Raw Normal View History

2023-01-27 11:34:31 -08:00
using System;
namespace MontoyaTech.MySqlPlus.Example
{
public class Program
{
public class Car : MySqlRow
{
[MySqlRowId]
[MySqlColumn]
public ulong Id = 0;
[MySqlColumn("make")]
[MySqlColumnAlias("Make")]
public string Make = null;
[MySqlColumn("mode")]
public string Model = null;
[MySqlColumn("dateCreated", typeof(DateTime2UnixConverter))]
public DateTime DateCreated = DateTime.UtcNow;
}
public class DateTime2UnixConverter
{
}
public static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}
}