Skip to content

Instantly share code, notes, and snippets.

@spinningcat
Created November 29, 2018 12:03
Show Gist options
  • Save spinningcat/ff4c251b3a3b2777ae5aace2ae45000a to your computer and use it in GitHub Desktop.
Save spinningcat/ff4c251b3a3b2777ae5aace2ae45000a to your computer and use it in GitHub Desktop.
public void insertsapsparameter(int facid, int pid, SAPS2DBModel sModel)
{
try
{
sabs2score sScore = new sabs2score
{
facid = facid,
pid = pid,
ageValue = sModel.ageValue,
agePoint = sModel.agePoint,
hrValue = sModel.hrValue,
hrPoint = sModel.hrPoint,
sapValue = sModel.sapValue,
sapPoint = sModel.sapPoint,
tempValue = sModel.tempValue,
tempPoint = sModel.tempPoint,
gcsValue = sModel.gcsValue,
gcsPoint = sModel.gcsPoint,
pa02fio2Value = sModel.pa02fio2Value,
pa02fio2Point = sModel.pa02fio2Value,
bunValue = sModel.bunValue,
bunPoint = sModel.bunPoint,
serumureaValue = sModel.serumureaValue,
urineValue = sModel.urineValue,
urinePoint = sModel.urinePoint,
sodiumValue = sModel.sodiumValue,
sodiumPoint = sModel.sodiumPoint,
potasiumValue = sModel.potasiumValue,
potasiumPoint = sModel.potasiumPoint,
hco3Value = sModel.hco3Value,
hco3Point = sModel.hco3Point,
bilirubinValue = sModel.bilirubinValue,
bilirubinPoint = sModel.bilirubinPoint,
wbcValue = sModel.wbcValue,
wbcPoint = sModel.wbcPoint,
admissionValue = sModel.admissionValue,
admissionPoint = sModel.admissionPoint,
calculatedon = sModel.calculatedon,
score = sModel.score
};
_Context.sabs2score.Add(sScore);
_Context.SaveChanges();
}
catch (Exception e)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment