在PowerShell脚本中添加类型 [英] Adding a type to my PowerShell script

查看:95
本文介绍了在PowerShell脚本中添加类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在PowerShell脚本中添加一个方法,以便在特定数据库中执行LINQ。

我应该添加类似于1(只有1)公共静态方法的类,或者,我可以通过一些专门的添加类型cmdlet参数添加1(仅1)静态方法吗?

I need to add a method to my PowerShell script, to perform LINQ in a specific database.
Should I either add a type like a class with 1 (just 1) public static method, or, can I add just 1 (just 1) static method through some specialized add type cmdlet's parameter?

推荐答案

这篇关于在PowerShell脚本中添加类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆