예제 #1
0
 /// <summary>
 /// Init the <see cref="DeprecatedRevisionsType"/>.
 /// </summary>
 /// <param name="record">The input record.</param>
 public override void Initialize(IEdmRecordExpression record)
 {
     base.Initialize(record);
     if (Kind != RevisionKind.Deprecated)
     {
         throw new InvalidOperationException("The kind of the revision must be Deprecated.");
     }
     RemovalDate = record.GetDateTime(nameof(RemovalDate));
     Date        = record.GetDateTime(nameof(Date));
 }