Esempio n. 1
0
		/// <summary>Creates the code bundle from an existing <see cref="CsDbArchitecture" />.</summary>
		internal static CsDbCodeBundle FromArchitecture(CsDbArchitecture architecture)
		{
			var codeBundle = new CsDbCodeBundle(architecture);

			codeBundle.Context = new CsDbCodeDataContext(codeBundle);
			codeBundle.Databases = architecture.Databases.Select(x => CsDbCodeBundleForDb.FromArchitecture(codeBundle, x)).ToArray();

			return codeBundle;
		}
Esempio n. 2
0
		private CsDbCodeBundle(CsDbArchitecture architecture)
		{
			Architecture = architecture;
		}