示例#1
0
 public static List<Tuple<int, string>> tablaDetail(int id)
 {
     try
     {
         var procedimiento = new DataLayer();
         return procedimiento.tablaDetail(id);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
 public static List<string> selectColumn(string tableName)
 {
     try
     {
         var procedimiento = new DataLayer();
         return procedimiento.selectColumn(tableName);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#3
0
 //List<Tuple<string, string>>
 public static List<Tuple<string, string>> selectData()
 {
     try
     {
         var procedimiento = new DataLayer();
         return procedimiento.selectData();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#4
0
 public static void DeleteCampo(string id)
 {
     try
     {
         var procedimiento = new DataLayer();
         procedimiento.DeleteCampo(id);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#5
0
 public static void DeleteCampo(string id)
 {
     try
     {
         var procedimiento = new DataLayer();
         procedimiento.DeleteCampo(id);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#6
0
 //List<Tuple<string, string>>
 public static List <Tuple <string, string> > selectData()
 {
     try
     {
         var procedimiento = new DataLayer();
         return(procedimiento.selectData());
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#7
0
 public static List <string> selectColumn(string tableName)
 {
     try
     {
         var procedimiento = new DataLayer();
         return(procedimiento.selectColumn(tableName));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#8
0
 public static List <Tuple <int, string> > tablaDetail(int id)
 {
     try
     {
         var procedimiento = new DataLayer();
         return(procedimiento.tablaDetail(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#9
0
 public static int Insert(RelacionCamposTablas_BD tablas, int[] m, string[] pk)
 {
     try
     {
         var procedimiento = new DataLayer();
         for (int i = 0; i < m.Length; i++)
         {
             tablas.RelacionID = m[i];
             tablas.CampoTR = pk[i];
             procedimiento.Insert(tablas);
         }
         return 1;
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#10
0
 public static int Insert(RelacionCamposTablas_BD tablas, int[] m, string[] pk)
 {
     try
     {
         var procedimiento = new DataLayer();
         for (int i = 0; i < m.Length; i++)
         {
             tablas.RelacionID = m[i];
             tablas.CampoTR    = pk[i];
             procedimiento.Insert(tablas);
         }
         return(1);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }