public static VisualBasic GetMapper(DbMapper existingMapper, CodeContext context)
            {
                if (existingMapper is VisualBasic visualBasicMapper)
                {
                    return(visualBasicMapper.Refresh(context));
                }

                var dbClass = context.FindClassDeclaration <ClassBlockSyntax>(KnownTypes.DbSession, out var dbType);

                if (dbClass == null)
                {
                    return(null);
                }

                var result = new VisualBasic();

                result.Update(context, dbClass, dbType);
                return(result);
            }
            public static VisualBasic GetMapper(ModelMapper existingModelMapper, CodeContext context)
            {
                if (existingModelMapper is VisualBasic visualBasicModelMapper)
                {
                    return(visualBasicModelMapper.Refresh(context));
                }

                var modelClass = context.FindClassDeclaration <ClassBlockSyntax>(KnownTypes.Model, out var modelType);

                if (modelClass == null)
                {
                    return(null);
                }

                var result = new VisualBasic();

                result.Update(context, modelClass, modelType);
                return(result);
            }