Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/13/09 15:07:31 (16 years ago)
Author:
gkronber
Message:

worked on CEDMA DB-backend. Select() interface to RDF_Store is not powerful enough => need Query() interface. #419
(work in progress - doesn't build!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/DataSetList.cs

    r992 r1116  
    4141        store = value;
    4242        Action reload = ReloadList;
    43         lock(dataSetList) {
     43        lock (dataSetList) {
    4444          dataSetList.Clear();
    4545        }
     
    5858
    5959    private void ReloadList() {
    60       IList<Statement> statements = store.Select(new Statement(Ontology.AnyEntity, Ontology.PredicateInstanceOf, Ontology.TypeDataSet));
    61       foreach(Statement s in statements) {
     60      var statements = store.Select(new Statement(Ontology.AnyEntity, Ontology.PredicateInstanceOf, Ontology.TypeDataSet));
     61      foreach (Statement s in statements) {
    6262        DataSet d = new DataSet(store, s.Subject);
    63         lock(dataSetList) {
     63        lock (dataSetList) {
    6464          dataSetList.Add(d);
    6565        }
     
    7070    public IEnumerator<DataSet> GetEnumerator() {
    7171      List<DataSet> dataSets = new List<DataSet>();
    72       lock(dataSets) {
     72      lock (dataSets) {
    7373        dataSets.AddRange(dataSetList);
    7474      }
Note: See TracChangeset for help on using the changeset viewer.