/// <summary> /// Create a new diseae attribute /// </summary> /// <param name="diseaseAttributeName"></param> /// <returns></returns> public DiseaseAttribute_Table CreateDiseaseAttribute(string diseaseAttributeName) { DiseaseAttribute_Table biz = new DiseaseAttribute_Table(); biz[DiseaseAttribute_Table.DiseaseAttributeName] = diseaseAttributeName; biz.Save(); return(biz); }
/// <summary> /// Creates the DiseaseAttributeId for IsView /// </summary> /// <returns>The new DiseaseAttributeId</returns> private int CreateDiseaseIsViewAttribute() { DiseaseAttribute_Table biz = new DiseaseAttribute_Table(); biz[DiseaseAttribute_Table.DiseaseAttributeName] = "IsView"; biz.Save(); return((int)biz[biz.PrimaryKeyName]); }