Ejemplo n.º 1
0
        T[] IObjectEntity <T> .Query(T item)
        {
            IObjectEntity <T> d    = this;
            List <T>          list = new List <T>();

            d.Query(item, rd => list.Add(rd));
            return(list.ToArray());
        }
Ejemplo n.º 2
0
 public void Pop(IObjectEntity upper = null)
 {
     container.Append("{").Append(obj);
     if (PropertyName != null)
     {
         container.Append($"\"{PropertyName}\":\"{ObjId}\",");
     }
     if (upper != null && UpperPropertyName != null)
     {
         container.Append($"\"{UpperPropertyName}\":\"{upper.ObjId}\",");
     }
     container.Remove(container.Length - 1, 1).Append("},");
     if (Count % defaultBlockSize == 0)
     {
         Clear();
     }
 }
Ejemplo n.º 3
0
 public Conditions(Conditions con, IObjectEntity <T> entity)
 {
     this.Wherer  = con;
     this.IWherer = con;
     this.entity  = entity;
 }
Ejemplo n.º 4
0
 public Conditions(IObjectEntity <T> entity)
 {
     this.Wherer  = new Conditions();
     this.IWherer = this.Wherer;;
     this.entity  = entity;
 }
Ejemplo n.º 5
0
        T IObjectEntity <T> .Single()
        {
            IObjectEntity <T> d = this;

            return(d.Single(default(T)));
        }
Ejemplo n.º 6
0
        T[] IObjectEntity <T> .Query(int start, int limit)
        {
            IObjectEntity <T> d = this;

            return(d.Query(default(T), start, limit));
        }
Ejemplo n.º 7
0
        T[] IObjectEntity <T> .Query()
        {
            IObjectEntity <T> d = this;

            return(d.Query(default(T)));
        }
Ejemplo n.º 8
0
        void IObjectEntity <T> .Query(int start, int limit, DataReader <T> dr)
        {
            IObjectEntity <T> d = this;

            d.Query(default(T), start, limit, dr);
        }
Ejemplo n.º 9
0
        void IObjectEntity <T> .Query(DataReader <T> reader)
        {
            IObjectEntity <T> d = this;

            d.Query(default(T), reader);
        }
Ejemplo n.º 10
0
 public void Dump(IObjectEntity objectEntity)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 11
0
 public void Eat(IObjectEntity food)
 {
     throw new NotImplementedException();
 }