예제 #1
0
        private static void ConfigureUniqueIdentifierGenerator()
        {
            string firstId = String.Empty;

            using (var linkRepository = new LinkRepository(new LinkDataContext()))
            {
                var link = linkRepository.LastOrDefault();
                if (link != null)
                {
                    firstId = link.Id;
                }
            }

            UniqueIdGenerator.Configure(firstId);
        }