예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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]);
        }