Exemplo n.º 1
0
 private DALNewNUBE.EntityType EntityType(string Type)
 {
     DALNewNUBE.EntityType et = EntityTypeList.Where(x => x.Entity == Type).FirstOrDefault();
     if (et == null)
     {
         et = new DALNewNUBE.EntityType();
         dbNew.EntityTypes.Add(et);
         EntityTypeList.Add(et);
         et.Entity = Type;
     }
     return(et);
 }
Exemplo n.º 2
0
 private int EntityTypeId(string Type)
 {
     DAL.EntityType et = EntityTypeList.Where(x => x.Entity == Type).FirstOrDefault();
     if (et == null)
     {
         et = new DAL.EntityType();
         DB.EntityTypes.Add(et);
         EntityTypeList.Add(et);
         et.Entity = Type;
         DB.SaveChanges();
     }
     return(et.Id);
 }
Exemplo n.º 3
0
        public override void Load(System.IO.BinaryReader r, uint id)
        {
            base.Load(r, id);

            LoadCategory = r.ReadString();

            int length = r.ReadInt32();

            for (int i = 0; i < length; i++)
            {
                EntityTypeList.Add(Type.GetType(r.ReadString()));
            }

            length = r.ReadInt32();
            for (int i = 0; i < length; i++)
            {
                ExcludedEntityTypeList.Add(Type.GetType(r.ReadString()));
            }
        }