12345678910111213141516171819202122 |
- using FocasCncCollect.Models;
- using FocasCncCollect.TMS.Models;
- namespace FocasCncCollect.Core
- {
- public class DataAccessFactory
- {
- public static fmsforycContext GetInstance(bool lazyLoading = true)
- {
- var db = new fmsforycContext();
- db.Configuration.LazyLoadingEnabled = lazyLoading;
- return db;
- }
- public static tmsfrmContext GetTMSInstance(bool lazyLoading = true)
- {
- var db = new tmsfrmContext();
- db.Configuration.LazyLoadingEnabled = lazyLoading;
- return db;
- }
- }
- }
|