MigrationsScaffolder.GetNamespace(Type, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會獲得兄弟姊妹類型的命名空間。 若無,則使用預設命名空間。
protected virtual string GetNamespace(Type siblingType, string defaultNamespace);
protected virtual string GetNamespace(Type? siblingType, string defaultNamespace);
abstract member GetNamespace : Type * string -> string
override this.GetNamespace : Type * string -> string
Protected Overridable Function GetNamespace (siblingType As Type, defaultNamespace As String) As String
參數
- siblingType
- Type
那種兄弟姊妹型。
- defaultNamespace
- String
預設命名空間。
傳回
命名空間。