public static st_TecnicoDataset GetList() { st_TecnicoDataset data = new st_TecnicoDataset(); SqlDataAdapter adapter = new SqlDataAdapter(); adapter.TableMappings.Add("Table", "st_Tecnico"); SqlCommand cmd = new SqlCommand("Pr_st_Tecnico_GetList", dbhelper.Connection.GetConnection()); cmd.CommandType = CommandType.StoredProcedure; adapter.SelectCommand = cmd; adapter.Fill(data); return(data); }
public static st_TecnicoDataset GetList(string Habilitado) { st_TecnicoDataset data = new st_TecnicoDataset(); SqlDataAdapter adapter = new SqlDataAdapter(); adapter.TableMappings.Add("Table", "st_Tecnico"); SqlCommand cmd = new SqlCommand("Pr_st_Tecnico_SearchByHabilitado", dbhelper.Connection.GetConnection()); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@Habilitado", SqlDbType.VarChar)); cmd.Parameters["@Habilitado"].Value = Habilitado; adapter.SelectCommand = cmd; adapter.Fill(data); return(data); }