Example #1
0
        /// <summary>
        /// 更新Lb表数据
        /// </summary>
        /// <param name="pt"></param>
        public static void UpdateLabelLB(ElectronSymbol pt)
        {
            var lbClassName = pt.GetType().Name.Replace("_sdogeom", "");
            var type        = TypeCache.Instance.GetTypeFromCache(typeof(DBEntity), lbClassName);
            var labelLb     = DBManager.Instance.GetEntity(type, pt.G3E_FID);

            if (labelLb != null)
            {
                var newLabelLb = labelLb as ElectronBase;
                if (newLabelLb.EntityState == EntityState.Delete)
                {
                    newLabelLb.EntityState = EntityState.Update;
                }
                newLabelLb.IsErased = false;
                DBManager.Instance.Update(newLabelLb);
            }
        }
Example #2
0
 protected GeometryQueryBuilder(ElectronSymbol symbol, IEnumerable <string> avoidFields, SimpleMapping mapping)
     : base(symbol.GetType(), avoidFields, mapping, null, null, true)
 {
     Symbol = symbol;
 }