Class ObjectSchema.AssemblyModule
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
sys.assembly_modules (Transact-SQL)
Applies to: √ SQL Server (all supported versions) √ Azure SQL Managed Instance √ Azure Synapse Analytics √ Analytics Platform System (PDW)
Returns one row for each function, procedure or trigger that is defined by a common language runtime (CLR) assembly. This catalog view maps CLR stored procedures, CLR triggers, or CLR functions to their underlying implementation. Objects of type TA, AF, PC, FS, and FT have an associated assembly module. To find the association between the object and the assembly, you can join this catalog view to other catalog views. For example, when you create a CLR stored procedure, it is represented by one row in sys.objects, one row in sys.procedures (which inherits from sys.objects), and one row in sys.assembly_modules. The stored procedure itself is represented by the metadata in sys.objects and sys.procedures. References to the procedure's underlying CLR implementation are found in sys.assembly_modules.
See sys.assembly_modules.
[Table(Schema = "sys", Name = "assembly_modules", IsView = true)]
public class ObjectSchema.AssemblyModule
- Inheritance
-
ObjectSchema.AssemblyModule
- Extension Methods
Properties
AssemblyClass
Name of the class within the assembly that defines this module.
[Column("assembly_class")]
[Nullable]
public string? AssemblyClass { get; set; }
Property Value
AssemblyID
ID of the assembly from which this module was created.
[Column("assembly_id")]
[NotNull]
public int AssemblyID { get; set; }
Property Value
AssemblyMethod
Name of the method within the assembly_class that defines this module.
NULL for aggregate functions (AF).
[Column("assembly_method")]
[Nullable]
public string? AssemblyMethod { get; set; }
Property Value
ExecuteAsPrincipalID
ID of the database principal under which the context execution occurs, as specified by the EXECUTE AS clause of the CLR function, stored procedure, or trigger.
NULL = EXECUTE AS CALLER. This is the default.
ID of the specified database principal = EXECUTE AS SELF, EXECUTE AS user_name, or EXECUTE AS login_name.
-2 = EXECUTE AS OWNER.
[Column("execute_as_principal_id")]
[Nullable]
public int? ExecuteAsPrincipalID { get; set; }
Property Value
- int?
NullOnNullInput
Module was declared to produce a NULL output for any NULL input.
[Column("null_on_null_input")]
[Nullable]
public bool? NullOnNullInput { get; set; }
Property Value
- bool?
Object
objects (sys.objects)
[Association(ThisKey = "ObjectID", OtherKey = "ObjectID", CanBeNull = false)]
public ObjectSchema.Object Object { get; set; }
Property Value
ObjectID
Object identification number of the SQL object. Is unique within a database.
[Column("object_id")]
[NotNull]
public int ObjectID { get; set; }