12345678910111213141516171819202122232425 |
- using DbCommon.BusinessCore.DbCore;
- using DbCommon.Enties.DbModels;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DbCommon.BusinessCore.BaseCore
- {
- public class AsyncBehaviorManager : DbContext<AsyncBehaviorModel>
- {
- public void Init()
- {
- //If no exist create datebase
- //Db.DbMaintenance.CreateDatabase();
- if (!Db.DbMaintenance.IsAnyTable("AsyncBehavior", false))
- {
- //Create tables
- Db.CodeFirst.InitTables(typeof(AsyncBehaviorModel));
- }
- }
- }
- }
|