当前位置: 首页>>代码示例>>C#>>正文


C# Types.SaveList方法代码示例

本文整理汇总了C#中Types.SaveList方法的典型用法代码示例。如果您正苦于以下问题:C# Types.SaveList方法的具体用法?C# Types.SaveList怎么用?C# Types.SaveList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Types的用法示例。


在下文中一共展示了Types.SaveList方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: insert_states

        public void insert_states()
        {
            var states = new List<State>
                             {
                                 new State {Id = 1,Description = "Acre", Acronym = "AC"},
                                 new State {Id = 2,Description = "Alagoas", Acronym = "AL"},
                                 new State {Id = 3,Description = "Amapá", Acronym = "AP"},
                                 new State {Id = 4,Description = "Amazonas", Acronym = "AM"},
                                 new State {Id = 5,Description = "Bahia", Acronym = "BA"},
                                 new State {Id = 6,Description = "Ceará", Acronym = "CE"},
                                 new State {Id = 7,Description = "Distrito Federal", Acronym = "DF"},
                                 new State {Id = 8,Description = "Espírito Santo", Acronym = "ES"},
                                 new State {Id = 9,Description = "Goiás", Acronym = "GO"},
                                 new State {Id = 10,Description = "Maranhão", Acronym = "MA"},
                                 new State {Id = 11,Description = "Mato Grosso", Acronym = "MT"},
                                 new State {Id = 12,Description = "Mato Grosso do Sul", Acronym = "MS"},
                                 new State {Id = 13,Description = "Minas Gerais", Acronym = "MG"},
                                 new State {Id = 14,Description = "Pará", Acronym = "PA"},
                                 new State {Id = 15,Description = "Paraíba", Acronym = "PB"},
                                 new State {Id = 16,Description = "Paraná", Acronym = "PR"},
                                 new State {Id = 17,Description = "Pernambuco", Acronym = "PE"},
                                 new State {Id = 18,Description = "Piauí", Acronym = "PI"},
                                 new State {Id = 19,Description = "Rio de Janeiro", Acronym = "RJ"},
                                 new State {Id = 20,Description = "Rio Grande do Norte", Acronym = "RN"},
                                 new State {Id = 21,Description = "Rio Grande do Sul", Acronym = "RS"},
                                 new State {Id = 22,Description = "Rondônia", Acronym = "RO"},
                                 new State {Id = 23,Description = "Roraima", Acronym = "RR"},
                                 new State {Id = 24,Description = "Santa Catarina", Acronym = "SC"},
                                 new State {Id = 25,Description = "São Paulo", Acronym = "SP"},
                                 new State {Id = 26,Description = "Sergipe", Acronym = "SE"},
                                 new State {Id = 27,Description = "Tocantins", Acronym = "TO"},
                             };

            var reactionTypes = new Types<State>();

            reactionTypes.SaveList(states);
        }
开发者ID:Workker,项目名称:EHR,代码行数:37,代码来源:DataBaseInitialize.cs

示例2: insert_admission_options

        public void insert_admission_options()
        {
            var admissions = new List<ReasonOfAdmission>
                                 {
                                     new ReasonOfAdmission
                                     {
                                         Id = 1,
                                         Description = "Cirúrgica"
                                     },
                                     new ReasonOfAdmission
                                     {
                                         Id = 2,
                                         Description = "Clínica",
                                     },
                                     new ReasonOfAdmission
                                     {
                                         Id = 3,
                                         Description = "Eletiva"
                                     },
                                     new ReasonOfAdmission
                                     {
                                         Id = 4,
                                         Description = "Emergência"
                                     }
                                 };

            var repository = new Types<ReasonOfAdmission>();
            repository.SaveList<ReasonOfAdmission>(admissions);
        }
开发者ID:Workker,项目名称:EHR,代码行数:29,代码来源:DataBaseInitialize.cs

示例3: insert_reactions_types

        public void insert_reactions_types()
        {
            var alergicaLeveModeradaGrave = new ReactionType() { Id = 1, Description = "Aloimunização Eritrocitária" };

            var aloimunizacaoEritrocitaria = new ReactionType() { Id = 2, Description = "Aloimunização HLA" };

            var aloimunizacaoHla = new ReactionType() { Id = 3, Description = "Imunomodulação" };

            var enxertoXHospedeiro = new ReactionType() { Id = 4, Description = "Lesão pulmonar relacionada a transfusão" };

            var febrilNaoHemolitica = new ReactionType() { Id = 5, Description = "Púrpura pós transfusional" };

            var hemoliticaImune = new ReactionType() { Id = 6, Description = "Alérgica: leve; moderada; grave" };

            var imunomodulacao = new ReactionType() { Id = 7, Description = "Enxerto x Hospedeiro" };

            var lesaoPulmonarRelacionadaATransfusao = new ReactionType() { Id = 8, Description = "Febril não hemolítica" };

            var purpuraPosTransfusional = new ReactionType() { Id = 9, Description = "Hemolítica Imune" };

            var types = new List<ReactionType>
            {
            alergicaLeveModeradaGrave,
            aloimunizacaoEritrocitaria,
            aloimunizacaoHla,
            enxertoXHospedeiro,
            febrilNaoHemolitica,
            hemoliticaImune,
            imunomodulacao,
            lesaoPulmonarRelacionadaATransfusao,
            purpuraPosTransfusional
            };

            var reactionTypes = new Types<ReactionType>();

            reactionTypes.SaveList(types);
        }
开发者ID:Workker,项目名称:EHR,代码行数:37,代码来源:DataBaseInitialize.cs

示例4: insert_specialties

 public void insert_specialties()
 {
     var specialties = new List<Specialty> {
     new Specialty { Description = "Acupuntura" },
     new Specialty { Description = "Alergia e Imunologia" },
     new Specialty { Description = "Anestesiologia" },
     new Specialty { Description = "Angiologia" },
     new Specialty { Description = "Cancerologia (oncologia)" },
     new Specialty { Description = "Cardiologia" },
     new Specialty { Description = "Cirurgia Cardiovascular" },
     new Specialty { Description = "Cirurgia da Mão" },
     new Specialty { Description = "Cirurgia neurológica" },
     new Specialty { Description = "Cirurgia do Aparelho Digestório" },
     new Specialty { Description = "Cirurgia Geral" },
     new Specialty { Description = "Cirurgia Pediátrica" },
     new Specialty { Description = "Cirurgia Plástica" },
     new Specialty { Description = "Cirurgia Torácica" },
     new Specialty { Description = "Cirurgia Vascular" },
     new Specialty { Description = "Clínica Médica (Medicina interna)" },
     new Specialty { Description = "Coloproctologia" },
     new Specialty { Description = "Dermatologia" },
     new Specialty { Description = "Endocrinologia e Metabologia" },
     new Specialty { Description = "Endoscopia" },
     new Specialty { Description = "Gastroenterologia" },
     new Specialty { Description = "Genética médica" },
     new Specialty { Description = "Geriatria" },
     new Specialty { Description = "Ginecologia e Obstetrícia" },
     new Specialty { Description = "Hematologia e Hemoterapia" },
     new Specialty { Description = "Homeopatia" },
     new Specialty { Description = "Infectologia" },
     new Specialty { Description = "Mastologia" },
     new Specialty { Description = "Medicina de Família e Comunidade" },
     new Specialty { Description = "Medicina do Trabalho" },
     new Specialty { Description = "Medicina do Tráfego" },
     new Specialty { Description = "Medicina Esportiva" },
     new Specialty { Description = "Medicina Física e Reabilitação" },
     new Specialty { Description = "Medicina Intensiva" },
     new Specialty { Description = "Medicina Legal e Perícia Médica (ou medicina forense)" },
     new Specialty { Description = "Medicina Nuclear" },
     new Specialty { Description = "Medicina Preventiva e Social" },
     new Specialty { Description = "Nefrologia" },
     new Specialty { Description = "Neurocirurgia" },
     new Specialty { Description = "Neurologia" },
     new Specialty { Description = "Nutrologia" },
     new Specialty { Description = "Oftalmologia" },
     new Specialty { Description = "Ortopedia e Traumatologia" },
     new Specialty { Description = "Otorrinolaringologia" },
     new Specialty { Description = "Patologia" },
     new Specialty { Description = "Patologia Clínica/Medicina laboratorial" },
     new Specialty { Description = "Pediatria" },
     new Specialty { Description = "Pneumologia" },
     new Specialty { Description = "Psiquiatria" },
     new Specialty { Description = "Radiologia e Diagnóstico por Imagem" },
     new Specialty { Description = "Radioterapia" },
     new Specialty { Description = "Reumatologia" },
     new Specialty { Description = "Urologia" }
     };
     var typesRepository = new Types<Specialty>();
     typesRepository.SaveList<Specialty>(specialties);
 }
开发者ID:Workker,项目名称:EHR,代码行数:60,代码来源:DataBaseInitialize.cs

示例5: insert_Historical_Action_Types

        public void insert_Historical_Action_Types()
        {
            var list = new List<HistoricalActionType>
                           {
                               new HistoricalActionType{Id = 1,Description = "incluiu"},
                               new HistoricalActionType{Id = 2,Description = "alterou"},
                               new HistoricalActionType{Id = 3,Description = "excluiu"},
                               new HistoricalActionType{Id = 4,Description = "viu"},
                               new HistoricalActionType{Id = 5,Description = "fechou"},
                               new HistoricalActionType{Id = 6,Description = "reabriu"},
                               new HistoricalActionType{Id = 7,Description = "imprimiu"},
                           };
            var types = new Types<HistoricalActionType>();

            types.SaveList(list);
        }
开发者ID:Workker,项目名称:EHR,代码行数:16,代码来源:DataBaseInitialize.cs

示例6: insert_hemotransfusion_types

        public void insert_hemotransfusion_types()
        {
            var types = new List<HemotransfusionType>
            {
                new HemotransfusionType {Id=1, Description = "Criopreciptado" },
                new HemotransfusionType {Id=2, Description = "Concentrado de hemácias" },
                new HemotransfusionType {Id=3, Description = "Concentrado de neutrófilos" },
                new HemotransfusionType {Id=4, Description = "Concentrado de plaquetas" },
                new HemotransfusionType {Id=5, Description = "Plasma" }
            };

            var reactionTypes = new Types<HemotransfusionType>();

            reactionTypes.SaveList(types);
        }
开发者ID:Workker,项目名称:EHR,代码行数:15,代码来源:DataBaseInitialize.cs

示例7: insert_diagnostic_types

        public void insert_diagnostic_types()
        {
            var types = new List<DiagnosticType>
                            {
                                new DiagnosticType() {Id = 1, Description = "Principal" },
                                new DiagnosticType() {Id = 2, Description = "Associados e/ou Outros" }
                            };

            var typesRepository = new Types<DiagnosticType>();

            typesRepository.SaveList(types);
        }
开发者ID:Workker,项目名称:EHR,代码行数:12,代码来源:DataBaseInitialize.cs

示例8: insert_Conditions_Of_The_Patient_At_Discharge

        public void insert_Conditions_Of_The_Patient_At_Discharge()
        {
            var types = new List<ConditionAtDischarge>
                            {
                                new ConditionAtDischarge() {Id = 1, Description = "Curado" },
                                new ConditionAtDischarge() {Id = 2, Description = "Melhorado" },
                                new ConditionAtDischarge() {Id = 3, Description = "Desistência de tratamento" },
                            };

            var typesRepository = new Types<ConditionAtDischarge>();

            typesRepository.SaveList(types);
        }
开发者ID:Workker,项目名称:EHR,代码行数:13,代码来源:DataBaseInitialize.cs

示例9: insert_allergies_types

        public void insert_allergies_types()
        {
            var types = new List<AllergyType>
                            {
                                new AllergyType {Id = 1, Description = "Angioedema" },
                                new AllergyType {Id = 2, Description = "Urticária" },
                                new AllergyType {Id = 3, Description = "Choque Anafilático" },
                                new AllergyType {Id = 4, Description = "Broncoespasmo" },
                                new AllergyType {Id = 5, Description = "Laringoespasmo" },
                                new AllergyType {Id = 6, Description = "Outros" }
                            };

            var typesRepository = new Types<AllergyType>();

            typesRepository.SaveList(types);
        }
开发者ID:Workker,项目名称:EHR,代码行数:16,代码来源:DataBaseInitialize.cs


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