Working on initial project structure.
This commit is contained in:
16
MySqlPlus.Example/MySqlPlus.Example.csproj
Normal file
16
MySqlPlus.Example/MySqlPlus.Example.csproj
Normal file
@ -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
MySqlPlus.Example/Program.cs
Normal file
34
MySqlPlus.Example/Program.cs
Normal 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!");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user