public Application(IRegister register, ILogin login, IBaseUser baseUser, IAdminUser admin, IRegularUser regular) { _register = register; _login = login; _baseUser = baseUser; _adminFunction = admin; _regularFunction = regular; }
public Object( string id, IBaseUser author, System.DateTimeOffset?createdAt, string data) { Id = id; Author = author; CreatedAt = createdAt; Data = data; }
static void Main(string[] args) { User user = new User(); Department department = new Department(); DBType dbType = new DBType(); IBaseUser db = (IBaseUser)dbType.CreatDBInfo("User"); IBaseDepartment depart = (IBaseDepartment)dbType.CreatDBInfo("Department"); db.Insert(user); db.GetUser(1); depart.Insert(department); depart.GetDepartment(1); Console.Read(); }