public static void AddResource_Person(string s1, string s2, string s3) { var context = new PmtContext(); context.ResourcePersons.Add(new ResourcePerson() { ResourcePersonName = s1, ResourcePersonProjectName = s2, ResourcePersonDesignation = s3 }); context.SaveChanges(); }
public static void AddUser(string s1, string s2, string s3, bool s4, string s5) { var context = new PmtContext(); context.Users.Add(new User() { UserName = s1, UserEmail = s2, UserPassword = s3, UserStatus = s4, UserDesignation = s5 }); context.SaveChanges(); }
public static void AddTask(string s1, string s2, string s3, DateTime s4, string s5) { var context = new PmtContext(); context.Tasks.Add(new EntityClasses.Task() { TasksName = s3, TasksProjectName = s1, TasksAssignedUser = s2, dueDate = s4, priority = s5 }); context.SaveChanges(); }
public static void AddProject(string s1, string s2, string s3, string s4, string s5, DateTime s6, DateTime s7, int s8, string s9, string s10) { var context = new PmtContext(); context.Projects.Add(new Project() { ProjectName = s1, ProjectShortName = s2, ProjectDescription = s3, ProjectManager = s4, ProjectFilePath = s5, ProjectPsd = s6, ProjectPed = s7, ProjectDuration = s8, ProjectPriority = s9, ProjectStatus = s10 }); context.SaveChanges(); }