37 lines
900 B
C#
37 lines
900 B
C#
using System;
|
|
namespace ln.types.odb.ng
|
|
{
|
|
//public class Reference<T> where T:class
|
|
//{
|
|
// ODBMapper mapper;
|
|
// ObjectCollection<T> Collection => mapper.GetCollection<T>();
|
|
|
|
// internal object valueID;
|
|
|
|
// public Reference(ODBMapper mapper)
|
|
// {
|
|
// this.mapper = mapper;
|
|
// }
|
|
// public Reference(ODBMapper mapper,T value)
|
|
// {
|
|
// this.mapper = mapper;
|
|
// this.Value = value;
|
|
// }
|
|
|
|
// public T Value
|
|
// {
|
|
// get
|
|
// {
|
|
// if (this.valueID == null)
|
|
// return null;
|
|
// return this.Collection.Select(valueID);
|
|
// }
|
|
// set
|
|
// {
|
|
// this.Collection.Ensure(value);
|
|
// this.valueID = this.mapper.GetDocumentID(value);
|
|
// }
|
|
// }
|
|
//}
|
|
}
|