public static VariablesUsuariosDataset.VariablesUsuariosRow GetByPk(long IdVariable, long IdUsuario) { VariablesUsuariosDataset data = new VariablesUsuariosDataset(); SqlCommand cmd = new SqlCommand("Pr_VariablesUsuarios_GetByPk", dbhelper.Connection.GetConnection()); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@IdVariable", SqlDbType.BigInt)); cmd.Parameters["@IdVariable"].Value = IdVariable; cmd.Parameters.Add(new SqlParameter("@IdUsuario", SqlDbType.BigInt)); cmd.Parameters["@IdUsuario"].Value = IdUsuario; SqlDataAdapter adapter = new SqlDataAdapter(cmd); adapter.TableMappings.Add("Table", "VariablesUsuarios"); adapter.Fill(data); if (data.VariablesUsuarios.Rows.Count == 1) { return((VariablesUsuariosDataset.VariablesUsuariosRow)data.VariablesUsuarios.Rows[0]); } return(null); }
public static void Update(VariablesUsuariosDataset dataSet) { Update(dataSet.VariablesUsuarios); }
public static VariablesUsuariosDataset GetList() { VariablesUsuariosDataset data = new VariablesUsuariosDataset(); return(( VariablesUsuariosDataset )GetList(data)); }