Added MariaDB and fanuc tool managing

This commit is contained in:
Lucio Maranta
2018-02-02 07:10:57 +00:00
parent 34448506e5
commit b9c7c2d1a0
7 changed files with 203 additions and 22 deletions
@@ -0,0 +1,21 @@
using MySql.Data.Entity;
using System.Data.Entity;
using static CMS_CORE_Application.ToolDatabase.ToolModels;
namespace CMS_CORE_Application.ToolDatabase
{
[DbConfigurationType(typeof(MySqlEFConfiguration))]
public class ToolDatabaseContext : DbContext
{
public DbSet<ToolModel> Tools { get; set; }
public DbSet<ShankModel> Shanks { get; set; }
public DbSet<FamilyModel> Family { get; set; }
public DbSet<ManinaModello> Manine { get; set; }
public ToolDatabaseContext() : base("mySQLDatabaseConnection")
{
}
}
}