• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# CollegeERPDBEntities类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中CollegeERPDBEntities的典型用法代码示例。如果您正苦于以下问题:C# CollegeERPDBEntities类的具体用法?C# CollegeERPDBEntities怎么用?C# CollegeERPDBEntities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CollegeERPDBEntities类属于命名空间,在下文中一共展示了CollegeERPDBEntities类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: getprogramslist

 public List<Program_tbl> getprogramslist()
 {
     db = new CollegeERPDBEntities();
     
         var programs = db.Program_tbl.ToList();
         return programs;
     
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:8,代码来源:DBFunctions.cs


示例2: AddQuestionare

 public void AddQuestionare(int UserID)
 {
     db = new CollegeERPDBEntities();
     
     AdminMails_tbl obj = new AdminMails_tbl {SenderID=UserID,Message="<a href=DownloadReport.aspx?senderid='"+UserID+"'>Download Questionair</a>",Subject="SuggestionRequest",Status=0,Date=DateTime.Now.Date};
     db.AdminMails_tbl.Add(obj);
     db.SaveChanges();
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:8,代码来源:DBFunctions.cs


示例3: getformSectionlist

 public List<FormSections_tbl> getformSectionlist()
 {
     using (db = new CollegeERPDBEntities())
     {
         var Sections = db.FormSections_tbl.ToList();
         return Sections;
     }
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:8,代码来源:DBFunctions.cs


示例4: LoginChek

 public Candidate_tbl LoginChek(string username, string password)
 {
    db = new CollegeERPDBEntities();
 
         var candidate = db.Candidate_tbl.Where(x => x.Username == username && x.Password == password).FirstOrDefault();
         
         return candidate;
  
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:9,代码来源:DBFunctions.cs


示例5: AddRegistrationNotice

       public void AddRegistrationNotice(Mails_tbl t)
       {
           db = new CollegeERPDBEntities();

           db.Mails_tbl.Add(t);
           db.SaveChanges();


       }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:9,代码来源:DBFunctions.cs


示例6: AddCandidate

 public int AddCandidate(Candidate_tbl candidate)
 {
     db = new CollegeERPDBEntities();
     
         db.Candidate_tbl.Add(candidate);
         db.SaveChanges();
         return candidate.ID;
     
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:9,代码来源:DBFunctions.cs


示例7: addQuestion

       public void addQuestion(string Question,string[] answers)
       {
           using (db = new CollegeERPDBEntities())
           {
               Questionaire_tbl qstn = new Questionaire_tbl { Question = Question };
               db.Questionaire_tbl.Add(qstn);
               db.SaveChanges();
               foreach (string ans in answers)
               {
                   Answers_tbl anss = new Answers_tbl { Q_ID = qstn.Q_ID, Answer = ans };
                   db.Answers_tbl.Add(anss);
                   db.SaveChanges();
               }
           }

       }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:16,代码来源:DBFunctions.cs


示例8: addFormField

       public void addFormField(Forms_tbl form,string [] options)
       {
           using (db = new CollegeERPDBEntities())
           {
               db.Forms_tbl.Add(form);
               db.SaveChanges();

               if(form.FormControl!="Text")
               {
                   foreach (string option in options)
                       db.ControlOptions_tbl.Add(new ControlOptions_tbl { FieldID=form.ID,optionvalue=option});
               }
                   db.SaveChanges();
           }


       }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:17,代码来源:DBFunctions.cs


示例9: getresult

    public List<Results_tbl> getresult(int stdid,string term)
    {

        db = new CollegeERPDBEntities();
        var metricno=db.AddmissionList_tbl.Where(x=>x.UserID==stdid).FirstOrDefault().MetricNo;
        string year = DateTime.Now.Year.ToString();
        return db.Results_tbl.Where(x => x.MetricNo == metricno && x.Year==year && x.ExamType==term).ToList();
        
    }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:9,代码来源:DBFunctions.cs


示例10: updatestudtent

 //txtHomeaddress.Text, int.Parse(dropdownSto.SelectedValue),int.Parse(dropdownLocalGovtarea.SelectedValue),Emailtxt.Text,dropdownDay.SelectedItem.Text + "-" + dropdownMonth.SelectedItem.Text + "-" + dropdownyears.SelectedItem.Text,Phonetxt.Text
 public void updatestudtent(int stdid,string Name,int prid,int semester,string feediscount,string address,int sto,int area,string email,string dob,string phone)
 {
      db = new CollegeERPDBEntities();
     var student= db.StudentInfo_tbl.Where(x=>x.UserId==stdid).FirstOrDefault();
     student.ProgramID = prid;
     student.Semester = semester;
     student.FeeDiscount = feediscount;
     student.Candidate_tbl.Name = Name;
     student.Candidate_tbl.ProgrammeID = prid;
     student.Candidate_tbl.HomeAdress = address;
     student.Candidate_tbl.LocalGovtArea = area;
     student.Candidate_tbl.Stateoforigin = sto;
     student.Candidate_tbl.Email = email;
     student.Candidate_tbl.Phone = phone;
     student.Candidate_tbl.DateofBirth = dob;
     db.SaveChanges();
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:18,代码来源:DBFunctions.cs


示例11: addresults

 public int addresults(Results_tbl result)
 {
     db = new CollegeERPDBEntities();
     db.Results_tbl.Add(result);
     db.SaveChanges();
     return result.ID;
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:7,代码来源:DBFunctions.cs


示例12: getbooklist

    public List<Book> getbooklist(int page, int pagesize)
    {
        db = new CollegeERPDBEntities();
        List<Book> temp = db.Books.OrderBy(x=>x.ID).Skip(page*pagesize).Take(pagesize).ToList();
        
        // var course = db.Courses_tbl.Where(x => x.ID>=pageStart && x.ID<=pageEnd).FirstOrDefault();

        return temp;
    }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:9,代码来源:DBFunctions.cs


示例13: getusermail

    public Mails_tbl getusermail(int mid)
    {
        db = new CollegeERPDBEntities();

        var mail = db.Mails_tbl.Where(x => x.ID == mid).FirstOrDefault();
        mail.Status = 1;
        db.SaveChanges();
        return mail;
    }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:9,代码来源:DBFunctions.cs


示例14: getattdance_course

 public List<Attendance_tbl> getattdance_course(int courseid)
 {
     db = new CollegeERPDBEntities();
     return db.Attendance_tbl.Where(x => x.CourseID == courseid).ToList();
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:5,代码来源:DBFunctions.cs


示例15: placeOrder

 public void placeOrder(IssueBook book)
 {
     using (db = new CollegeERPDBEntities())
     {
         db.IssueBooks.Add(book);
         db.SaveChanges();
         AdminMails_tbl amail = new AdminMails_tbl { SenderID = book.LibraryMember.UserID, Message = book.LibraryMember.Candidate_tbl.Name + " has Requested for " + book.Book.Title, Date = DateTime.Now.Date, Subject = "Book Request", Status = 0 };
         addadminmail(amail);        
     }
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:10,代码来源:DBFunctions.cs


示例16: checkattendance

    public bool checkattendance(int courseid)
    {
        db = new CollegeERPDBEntities();
        DateTime date=DateTime.Now.Date;
        var check = db.Attendance_tbl.Where(x=>x.CourseID==courseid && x.Date==date).FirstOrDefault();

        return (check == null);
            
    }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:9,代码来源:DBFunctions.cs


示例17: getenrolledstudents

 public List<Enroll_Course> getenrolledstudents(int crsid)
 {
     db = new CollegeERPDBEntities();
    return db.Enroll_Course.Where(x=>x.CourseID==crsid&&x.Status==1).ToList();
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:5,代码来源:DBFunctions.cs


示例18: getapplicant_count

 public int getapplicant_count()
 {
     db = new CollegeERPDBEntities();
     var candidates = db.Candidate_tbl.ToList().Count;
     return candidates;
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:6,代码来源:DBFunctions.cs


示例19: generatemeritlist2

 public List<Candidate_tbl> generatemeritlist2(int prgid)
 {
     db = new CollegeERPDBEntities();
     
     var candidates = db.Candidate_tbl.Where(x => x.ProgrammeID == prgid).OrderByDescending(x => x.CuttoffPoints).Take(100).ToList();
     return candidates;
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:7,代码来源:DBFunctions.cs


示例20: getapplicantlist

 public List<Candidate_tbl> getapplicantlist(int page,int pagesize)
 {
     db = new CollegeERPDBEntities();
     var candidates= db.Candidate_tbl.OrderByDescending(x=>x.CuttoffPoints).Skip(page*pagesize).Take(pagesize).ToList() ;
     return candidates;
 }
开发者ID:EezeSolutions,项目名称:Higher_Erp,代码行数:6,代码来源:DBFunctions.cs



注:本文中的CollegeERPDBEntities类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Collider类代码示例发布时间:2022-05-24
下一篇:
C# Collections类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap