StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
I can't think this morning
I can't think this morning
Post Reply
Like
0
I can't think this morning
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Paul Chase
Paul Chase
posted 19 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 414,
Visits: 2.8K
Any ideas on why this Isn't working. This is in a base class so I dont have to do it in all bo's.
Protected
Overrides
Sub
OnSetDefaultValues()
MyBase
.OnSetDefaultValues()
'Get Reference To Primary Key Field Property
Dim
LoPkField
As
Reflection.PropertyInfo =
Me
.GetType.GetProperty(
Me
.PrimaryKeyField)
'If the PK is a Guid Generate a Sequential GUID to prevent Index fragmentation
If
LoPkField.PropertyType
Is
GetType
(System.Guid)
Then
LoPkField.SetValue(
Me
, BoCommon.NewSeqGuid,
Nothing
)
End
If
End
Sub
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
I can't think this morning
Paul Chase
-
19 Years Ago
Never mind it works fine I'm just a little slow I forgot to change the...
Paul Chase
-
19 Years Ago
:hehe: Glad you got it working.
Trent L. Taylor
-
19 Years Ago
Me 2 :D Ben got me interested inusing reflection and now I am trying...
Paul Chase
-
19 Years Ago
Reflection is a great tool. :)
Trent L. Taylor
-
19 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search