Exemple #1
0
        private Document GetModelDocument(ModelType modelType, string appName, string modelName)
        {
            //TODO:考虑从设计树查找相应的DocumentId
            var docName = $"{appName}.{CodeHelper.GetPluralStringOfModelType(modelType)}.{modelName}.cs";

            return(Workspace.CurrentSolution.GetProject(ModelProjectId).Documents.SingleOrDefault(t => t.Name == docName));
        }
Exemple #2
0
 public override string ToString()
 {
     return($"{ModelNode.AppNode.Model.Name}.{CodeHelper.GetPluralStringOfModelType(ModelNode.Model.ModelType)}.{ModelNode.Model.Name} at {Location}");
 }