public static Sandbox UseLocalDb(this Sandbox sandbox, string name = "LocalDb", Action <dynamic, ILocalDbConfiguration> config = null)
        {
            var grain = new LocalDbGrain(name);

            sandbox.Add(grain);

            if (config != null)
            {
                config((dynamic)sandbox, grain);
            }

            return(sandbox);
        }
        public static Core.Sandbox UseLocalDb(this Core.Sandbox sandbox, Action <dynamic, ILocalDbConfiguration> config = null)
        {
            var dynamicSb = sandbox as dynamic;
            var grain     = new LocalDbGrain();

            dynamicSb.LocalDb = grain;

            if (config != null)
            {
                config(sandbox, grain);
            }

            return(sandbox);
        }