FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ServiceStack/src/ServiceStack.Common/Model.cs at async · StackExpress/ServiceStack · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
StackExpress
/
ServiceStack
Public
forked from
ServiceStack/ServiceStack
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ServiceStack
/
src
/
ServiceStack.Common
/
Model.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (23 loc) · 610 Bytes
Breadcrumbs
ServiceStack
/
src
/
ServiceStack.Common
/
Model.cs
Copy path
File metadata and controls
27 lines (23 loc) · 610 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using
ServiceStack
.
Common
.
Utils
;
namespace
ServiceStack
{
public
static
class
Model
{
public
static
object
ToId
<
T
>
(
this
T
entity
)
{
return
entity
.
GetId
(
)
;
}
public
static
string
ToUrn
<
T
>
(
object
id
)
{
return
IdUtils
.
CreateUrn
<
T
>
(
id
)
;
}
public
static
string
ToUrn
<
T
>
(
this
T
entity
)
{
return
entity
.
CreateUrn
(
)
;
}
public
static
string
ToSafePathCacheKey
<
T
>
(
string
idValue
)
{
return
IdUtils
.
CreateCacheKeyPath
<
T
>
(
idValue
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL