예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the remag_admissao_alfanumerica EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToremag_admissao_alfanumerica(remag_admissao_alfanumerica remag_admissao_alfanumerica)
 {
     base.AddObject("remag_admissao_alfanumerica", remag_admissao_alfanumerica);
 }
예제 #2
0
 /// <summary>
 /// Create a new remag_admissao_alfanumerica object.
 /// </summary>
 /// <param name="admissao_alfanumerica_id">Initial value of the admissao_alfanumerica_id property.</param>
 /// <param name="descricao">Initial value of the descricao property.</param>
 /// <param name="codigo">Initial value of the codigo property.</param>
 public static remag_admissao_alfanumerica Createremag_admissao_alfanumerica(global::System.Int32 admissao_alfanumerica_id, global::System.String descricao, global::System.String codigo)
 {
     remag_admissao_alfanumerica remag_admissao_alfanumerica = new remag_admissao_alfanumerica();
     remag_admissao_alfanumerica.admissao_alfanumerica_id = admissao_alfanumerica_id;
     remag_admissao_alfanumerica.descricao = descricao;
     remag_admissao_alfanumerica.codigo = codigo;
     return remag_admissao_alfanumerica;
 }
예제 #3
0
 private void ImportarAdmissaoAlfanumerica(DataEntities dataContext, List<string> linhas)
 {
     linhas = linhas.Where(l => l.StartsWith("AdmissaoAlfanumerica|")).ToList();
     int i = 0;
     foreach (string linha in linhas)
     {
         string[] fields = linha.Split('|');
         remag_admissao_alfanumerica admissao = new remag_admissao_alfanumerica();
         admissao.descricao = fields[1];
         admissao.codigo = fields[2];
         dataContext.AddToremag_admissao_alfanumerica(admissao);
         backgroundWorker1.ReportProgress(i++);
     }
 }