public static IDictionary <string, string> ClonePropertiesIfNeeded(this IMold dbMold, bool needed) { return(needed ? dbMold.Properties.ToDictionary(x => x.Key, x => x.Value) : new Dictionary <string, string>()); }
internal static void SetBoolProperty(this IMold mold, string propertyName, bool value) { mold.Properties[propertyName] = value.ToString(); }