EnumDatabaseHelperGetEnums Method

取得列舉清單所有項目

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Enum.EnumDatabaseHelper (in eBizprise.Framework.Enum.EnumDatabaseHelper.dll) Version: 25.0.1.0+6e92afb880fa099fdfe407c9aa8d1b17eaaf3625
C#
public static List<EnumInformation> GetEnums(
	this Enum enumItem,
	IDatabaseHelper databaseHelper
)

Parameters

enumItem  Enum

[Missing <param name="enumItem"/> documentation for "M:eBizprise.Framework.EnumDatabaseHelper.GetEnums(System.Enum,eBizprise.Framework.Common.Database.Interface.IDatabaseHelper)"]

databaseHelper  IDatabaseHelper

[Missing <param name="databaseHelper"/> documentation for "M:eBizprise.Framework.EnumDatabaseHelper.GetEnums(System.Enum,eBizprise.Framework.Common.Database.Interface.IDatabaseHelper)"]

Return Value

ListEnumInformation
List<T>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Example

C#
using IDatabaseHelper databaseHelper = new SqlHelper("SqlServer");
List<GroupType> groupType = GroupType.Department.GetEnums(databaseHelper);

Revision History

DateVersionDescription
2025/08/011.0.0.0初版
2025/09/1925.0.0.0彙整2025年度初版

See Also