示例#1
0
        private IContainer CreateDependencyContainer()
        {
            var folder    = Path.Combine(ScaffoldUtility.GetRootFolder(), "Infrastructure", "Data", "Json");
            var container = DependencyService.CreateContainer(FacetContext, folder, null);

            return(container);
        }
示例#2
0
        public void UpdateFacetContextFixture_IfParameterIsSetToTrue(bool updateTheModel, string hostName, string databaseName, string folder)
        {
            if (!updateTheModel)
            {
                return;
            }

            var serializer = CreateSerializer();
            var path       = Path.Combine(ScaffoldUtility.GetRootFolder(), folder);

            using (var context = CreateContext(hostName, databaseName)) {
                new JsonWriterService(serializer).SerializeTypesToPath(context, ScaffoldUtility.GetModelTypes(), path);
            }
        }
示例#3
0
 public static string SeadJsonDataFolder()
 {
     return(Path.Combine(ScaffoldUtility.GetRootFolder(), "Infrastructure", "Data", "Json"));
 }
        private string DataFolder()
        {
            string root = ScaffoldUtility.GetRootFolder();

            return(Path.Combine(root, "Infrastructure", "Data", "CSharp"));
        }