48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated from a template.
|
|
//
|
|
// Manual changes to this file may cause unexpected behavior in your application.
|
|
// Manual changes to this file will be overwritten if the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace EHEC_Server
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public partial class Exam
|
|
{
|
|
public int ExamId { get; set; }
|
|
public int DoctorId { get; set; }
|
|
public int PatientId { get; set; }
|
|
public bool SicknessStatus { get; set; }
|
|
public string SicknessDesignation { get; set; }
|
|
public int OriginOriginId { get; set; }
|
|
public int Result_ResultId { get; set; }
|
|
|
|
public virtual Doctor Doctor { get; set; }
|
|
public virtual Origin Origin { get; set; }
|
|
public virtual Patient Patient { get; set; }
|
|
public virtual Result Result { get; set; }
|
|
|
|
public bool CreateExam(Exam exam)
|
|
{
|
|
try
|
|
{
|
|
using (EHEC_DBEntities ctx = new EHEC_DBEntities())
|
|
{
|
|
ctx.Exam.Add(exam);
|
|
ctx.SaveChanges();
|
|
}
|
|
return true;
|
|
}
|
|
catch (Exception)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|