protected override ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents) { DatabaseResourceSet rs = null; if (resourceSets.ContainsKey(culture.Name)) { rs = resourceSets[culture.Name]; } else { rs = new DatabaseResourceSet(connectionString, culture); resourceSets.Add(culture.Name, rs); } return(rs); }
protected override ResourceSet InternalGetResourceSet( CultureInfo culture, bool createIfNotExists, bool tryParents) { DatabaseResourceSet rs = null; if (ResourceSets.Contains(culture.Name)) { Trace.WriteLine(String.Format("DatabaseResourceManager, resource set {0} already exists", culture.Name)); rs = ResourceSets[culture.Name] as DatabaseResourceSet; } else { Trace.WriteLine(String.Format("DatabaseResourceManager, resource set {0} created", culture.Name)); rs = new DatabaseResourceSet(dsn, culture); ResourceSets.Add(culture.Name, rs); } return(rs); }