using System; namespace ln.types.odb.ng { //public class Reference where T:class //{ // ODBMapper mapper; // ObjectCollection Collection => mapper.GetCollection(); // 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); // } // } //} }