Beispiel #1
0
        public virtual void Test2()
        {
            NeoDatis.Odb.Core.Lookup.ILookup lookup = NeoDatis.Odb.Core.Lookup.LookupFactory.
                                                      Get("test");
            lookup.Set("oid1", "Ol√° chico");
            lookup = NeoDatis.Odb.Core.Lookup.LookupFactory.Get("test");
            string s = (string)lookup.Get("oid1");

            AssertEquals("Ol√° chico", s);
        }
 public static NeoDatis.Odb.Core.Lookup.ILookup Get(string key)
 {
     lock (typeof(LookupFactory))
     {
         NeoDatis.Odb.Core.Lookup.ILookup lookup = lookups[key];
         if (lookup == null)
         {
             lookup = new NeoDatis.Odb.Core.Lookup.LookupImpl();
             lookups.Add(key, lookup);
         }
         return(lookup);
     }
 }