Class DatabaseExtensionMethods
Extension methods for DesignData.SDS2.Database. These are all convenience methods and will appear to be on classes in DesignData.SDS2.Database.
Inheritance
Inherited Members
Namespace: DesignData.SDS2.Model
Assembly: DesignData.SDS2.Model.dll
Syntax
public static class DatabaseExtensionMethods
Methods
Add(Transaction, Bolt)
Add a bolt to the transaction so that it can be modified. You will need to Lock() again after adding bolts.
Declaration
public static void Add(this Transaction transaction, Bolt bolt)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction | |
Bolt | bolt |
Remarks
This is the same as transaction.Add(bolt.Handle);
Add(Transaction, Component)
Add a component to the transaction before locking so that it can be modified.
Declaration
public static void Add(this Transaction transaction, Component component)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction | |
Component | component |
Remarks
This is the same as transaction.Add(component.Handle);
Add(Transaction, Hole)
Add a hole to the transaction so that it can be modified. You will need to Lock() again after adding holes.
Declaration
public static void Add(this Transaction transaction, Hole hole)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction | |
Hole | hole |
Remarks
This is the same as transaction.Add(hole.Handle);
Add(Transaction, Material)
Add a material to the transaction so that it can be modified. You will need to Lock() again after adding materials.
Declaration
public static void Add(this Transaction transaction, Material material)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction | |
Material | material |
Remarks
This is the same as transaction.Add(material.Handle);
Add(Transaction, Member)
Add a member to the transaction before locking so that it can be modified.
Declaration
public static void Add(this Transaction transaction, Member member)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction | |
Member | member |
Remarks
This is the same as transaction.Add(member.Handle);
Add(Transaction, MemberBrief)
Add a member to the transaction before locking so that it can be modified.
Declaration
public static void Add(this Transaction transaction, MemberBrief member)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction | |
MemberBrief | member |
Remarks
This is the same as transaction.Add(member.Handle);
Add(Transaction, Weld)
Add a bolt to the transaction so that it can be modified. You will need to Lock() again after adding welds.
Declaration
public static void Add(this Transaction transaction, Weld weld)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction | |
Weld | weld |
Remarks
This is the same as transaction.Add(weld.Handle);