Exemplo n.º 1
0
        /// <summary>
        /// 获取字典信息
        /// <param name="kind">字典类别</param>
        /// </summary>
        /// <returns>字典信息</returns>
        public Dictionary <string, string> GetModelDictionary(DictKind kind)
        {
            Dictionary <string, string> dicts = null;

            try
            {
                LAF.Common.Util.ModelDictionaryHandler.TryGetModelDictionary(kind.ToString(), out dicts);
                return(dicts);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 internal DictDbSet(DbContext ctx, DictKind db_kind)
     : base(ctx, db_kind == DictKind.Main ? "Dict" : "DictAddins")
 {
 }
Exemplo n.º 3
0
 public DictManagerBLL(DictKind kind)
 {
     this._dicts = this.GetModelDictionary(kind);
 }