// Copyright (C) 2010-2020 Xtensive LLC.
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.
// Created by: Alexis Kochetov
// Created:    2010.02.27

using System;
using System.Diagnostics;
using Xtensive.Orm.Upgrade;

namespace Xtensive.Orm.Tests.Upgrade.PrimaryKeyModel.Version2Perform
{
  [HierarchyRoot]
  public class Author : Entity
  {
    [Key, Field]
    public int Id { get; private set; }

    [Field]
    public string Name { get; set; }
  }

  [HierarchyRoot]
  public class Book : Entity
  {
    [Key, Field]
    public Guid Id { get; private set; }

    [Field]
    public Author Author { get; set; }

    [Field(Length = 20000)]
    public string LongText { get; set; }
  }
}