Exemplo n.º 1
0
        public ModuleInfo GetEntityByKey(string key)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new ArgumentNullException("key");
            }


            var ents = from ent in Modules
                       where ent.MODULEID == key
                       select ent;
            T_PF_MODULEINFO application = ents.Count() > 0 ? ents.FirstOrDefault() : null;

            return(application.CloneObject <ModuleInfo>(new ModuleInfo()));
        }