ln.types/odb/Persistent.cs

30 lines
628 B
C#

// /**
// * File: Persistent.cs
// * Author: haraldwolff
// *
// * This file and it's content is copyrighted by the Author and / or copyright holder.
// * Any use wihtout proper permission is illegal and may lead to legal actions.
// *
// *
// **/
using System;
using LiteDB;
namespace ln.types.odb
{
public class Persistent : IPersistent
{
[BsonId]
public Guid PersistenceID { get; private set; }
public Persistent()
{
PersistenceID = Guid.NewGuid();
}
public Guid GetPersistenceID()
{
return PersistenceID;
}
}
}