Skip to content

Instantly share code, notes, and snippets.

@Macadoshis
Created November 1, 2018 17:28
Show Gist options
  • Save Macadoshis/fad9c54607ce005cf246bdffca2a7bc7 to your computer and use it in GitHub Desktop.
Save Macadoshis/fad9c54607ce005cf246bdffca2a7bc7 to your computer and use it in GitHub Desktop.
last-user (patch)
Index: CMSS.RestInterface/Models/Core/IRestEntity.cs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- CMSS.RestInterface/Models/Core/IRestEntity.cs (date 1541062513000)
+++ CMSS.RestInterface/Models/Core/IRestEntity.cs (date 1541093268418)
@@ -11,5 +11,7 @@
DateTime? UpdatedDate { get; set; }
int? UpdatedUser { get; set; }
+
+ int? LastUser { get; }
}
}
\ No newline at end of file
Index: CMSS.RestInterface/Models/Core/RestEntity.cs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- CMSS.RestInterface/Models/Core/RestEntity.cs (date 1541062513000)
+++ CMSS.RestInterface/Models/Core/RestEntity.cs (date 1541093268404)
@@ -11,5 +11,10 @@
public DateTime? UpdatedDate { get; set; }
public int? UpdatedUser { get; set; }
+
+ public int? LastUser
+ {
+ get { return this.UpdatedUser ?? this.CreatedUser; }
+ }
}
}
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment