Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="assignState">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, EntityState assignState, NowTimeZone timeZone)
     : base(property, assignState)
 {
     // lower priority because we need to assign before validate
     Priority = 10;
     TimeZone = timeZone;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="assignState">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, EntityState assignState, NowTimeZone timeZone)
     : base(property, assignState)
 {
     // lower priority because we need to assign before validate
     Priority = 10;
     TimeZone = timeZone;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowAttribute"/> class.
 /// </summary>
 /// <param name="state">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowAttribute(EntityState state, NowTimeZone timeZone)
 {
     State = state;
     TimeZone = timeZone;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, NowTimeZone timeZone)
     : this(property, EntityState.Dirty, timeZone)
 { }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowRule"/> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowRule(string property, NowTimeZone timeZone)
     : this(property, EntityState.Dirty, timeZone)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NowAttribute"/> class.
 /// </summary>
 /// <param name="state">State of the object that can be assigned.</param>
 /// <param name="timeZone">The time zone.</param>
 public NowAttribute(EntityState state, NowTimeZone timeZone)
 {
     State    = state;
     TimeZone = timeZone;
 }