Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/27/09 14:04:47 (15 years ago)
Author:
svonolfe
Message:

Refactored DAL (now using GUIDs as IDs instead of longs) (#527)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/ResourceAdapter.cs

    r1377 r1449  
    7171      dsHiveServer.ResourceRow row) {
    7272      if (resource != null && row != null) {
     73        row.ResourceId = resource.Id;
    7374        row.Name = resource.Name;
    7475
     
    8889
    8990      dsHiveServer.ResourceRow row = data.NewResourceRow();
     91      row.ResourceId = resource.Id;
    9092      data.AddResourceRow(row);
    9193
     
    9698      InsertNewRowInCache(Resource resource) {
    9799      dsHiveServer.ResourceRow row = cache.NewResourceRow();
     100      row.ResourceId = resource.Id;
    98101      cache.AddResourceRow(row);
    99102
     
    115118
    116119    protected override IEnumerable<dsHiveServer.ResourceRow>
    117       FindById(long id) {
     120      FindById(Guid id) {
    118121      return Adapter.GetDataById(id);
    119122    }
    120123
    121124    protected override dsHiveServer.ResourceRow
    122       FindCachedById(long id) {
     125      FindCachedById(Guid id) {
    123126      return cache.FindByResourceId(id);
    124127    }
Note: See TracChangeset for help on using the changeset viewer.