static void Main(string[] args) { var content = new ContainerBuilder(); Contenedor.content(content); IContainer Container = content.Build(); var SQL = Container.Resolve <IBaseDatos>(); BasedeDato BD = new BasedeDato(SQL); BD.AddData("Dato"); Console.ReadLine(); }