public override DefaultFileMetaData DefineDefaultFileMetaData()
        {
            var result = new DefaultFileMetaData(
                overwriteBehaviour: OverwriteBehaviour.Always,
                codeGenType: CodeGenType.Basic,
                fileName: "DataBoundConfig",
                fileExtension: "txt",
                defaultLocationInProject: "Templates\\Config\\DataBoundConfig"
                );

            return(result);
        }
        public override DefaultFileMetaData DefineDefaultFileMetaData()
        {
            var result = new DefaultFileMetaData(
                overwriteBehaviour: OverwriteBehaviour.Always,
                codeGenType: CodeGenType.Basic,
                fileName: Model.Name,
                fileExtension: "cs",
                defaultLocationInProject: "Templates\\CommonTypes\\ResolveGeneratedTypes"
                );

            return(result);
        }
Example #3
0
        public override DefaultFileMetaData DefineDefaultFileMetaData()
        {
            var metadata = new DefaultFileMetaData(
                overwriteBehaviour: OverwriteBehaviour.OnceOff,
                codeGenType: CodeGenType.Basic,
                fileName: "${Model.Name}",
                fileExtension: "cs",
                defaultLocationInProject: "Templates/${Model.Name}");

            metadata.CustomMetaData.Add("Depends On", "${Model.Name}.tt");

            return(metadata);
        }