Working on initial project structure.

This commit is contained in:
MattMo committed 2023-01-27 11:34:31 -08:00
1 parent a3d6749271
commit 41cd87b2f4
15 files changed
+1341

No files matched your search

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<AssemblyName>MontoyaTech.MySqlPlus.Example</AssemblyName>
<RootNamespace>MontoyaTech.MySqlPlus.Example</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\MySqlPlus\MySqlPlus.csproj" />
</ItemGroup>
</Project>
+34
View File
@@ -0,0 +1,34 @@
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!");
}
}
}