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