|
@@ -289,8 +289,7 @@ namespace InABox.Core
|
|
|
LastUpdate = DateTime.Now;
|
|
|
|
|
|
LastUpdateBy = ClientFactory.UserID;
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
// This doesn;t work - keeps being updated to current date
|
|
|
// Created => null ::Set ID = guid.empty -> now :: any other change -> unchanged!
|
|
|
// Moved to Create(), should not simply be overwritten on deserialise from json
|
|
@@ -301,27 +300,7 @@ namespace InABox.Core
|
|
|
// CreatedBy = ClientFactory.UserID;
|
|
|
//}
|
|
|
}
|
|
|
-
|
|
|
- #region Linked Properties
|
|
|
-
|
|
|
- // Why?
|
|
|
- [DoNotSerialize]
|
|
|
- private static readonly List<ILinkedProperty> _LinkedProperties = new List<ILinkedProperty>();
|
|
|
-
|
|
|
- public virtual void LinkProperty<TLinkedEntity, TEntityLink, TType>(Expression<Func<TLinkedEntity,TEntityLink>> path, Expression<Func<TEntityLink, TType>> source,
|
|
|
- Expression<Func<TLinkedEntity, TType>> target)
|
|
|
- {
|
|
|
- var map = new LinkedProperty<TLinkedEntity, TEntityLink, TType>(path, source, target);
|
|
|
- if (!_LinkedProperties.Any(x => x.Equals(map)))
|
|
|
- _LinkedProperties.Add(map);
|
|
|
- }
|
|
|
-
|
|
|
- public IEnumerable<ILinkedProperty> LinkedProperties(object path)
|
|
|
- {
|
|
|
- return _LinkedProperties.Where(x => (x.Type == this.GetType()) && (CoreUtils.GetPropertyValue(this,x.Path) == path));
|
|
|
- }
|
|
|
-
|
|
|
- #endregion
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public interface ILicense<TLicenseToken> where TLicenseToken : LicenseToken
|