Exemplo n.º 1
0
        internal void Create(EMap m)
        {
            // Name ve Root bilgileri Before üzerinden yükleniyor.
            // Güncelleme bu bilgiler Instruction kısmı için düzenleniyor.
            // Kullandığımız entity'in Name ve Root bilgileri alınmalı.

            DEntity d = new DEntity();
            Envoy   e = new Envoy();

            d.TargetLocation = m.ExternalLocation;

            d = e.Before(new EMap(), d);
            e.CreateIfNotThere(d);
            UpdateList(d.TargetLocation);

            if (!IsThereAny(m.Entity))
            {
                if (l.Count > 0)
                {
                    m.Id = l[l.Count - 1].Id + 1;
                }
                else
                {
                    m.Id = 1;
                }

                DataAccess.Insert insert = new DataAccess.Insert
                                               (m, d);
            }
        }
Exemplo n.º 2
0
        internal void Add(string ExternalLocation, string categoryName)
        {
            DEntity d = new DEntity();

            d.TargetLocation = ExternalLocation;
            d = e.Before(new ECategory(), d);
            e.CreateIfNotThere(d);
            UpdateList(ExternalLocation);

            if (!IsThereAny(categoryName))
            {
                ECategory c = new ECategory();
                c.Name = categoryName;
                if (s.Count > 0)
                {
                    c.Id = s[s.Count - 1].Id + 1;
                }
                else
                {
                    c.Id = 1;
                }
                DataAccess.Insert insert = new DataAccess.Insert
                                               (c, d);
            }
        }
Exemplo n.º 3
0
        internal void Create(string ExternalLocation, Type t)
        {
            DEntity d = new DEntity();

            d.TargetLocation = ExternalLocation;
            //
            d = e.Before(new EStatus(), d);
            e.CreateIfNotThere(d);
            UpdateList(ExternalLocation);

            EStatus state = IsThereAny(t.Name);

            if (state is null)
            {
                EStatus status = new EStatus();
                status.Entity = t.Name;
                status.Recent = 0;
                if (s.Count > 0)
                {
                    status.Id = s[s.Count - 1].Id + 1;
                }
                else
                {
                    status.Id = 1;
                }

                DataAccess.Insert add = new DataAccess.Insert(status, d);
            }
        }
Exemplo n.º 4
0
 internal void DataInsert(XEntity entity, DEntity info)
 {
     DataAccess.Insert insert = new DataAccess.Insert(entity, info);
 }