Beispiel #1
0
 /// <summary>
 /// Gets the database key of an entity.
 /// </summary>
 /// <param name="typeMetadata">The type metadata of entity.</param>
 /// <param name="entity">The value of entity.</param>
 /// <returns>The database key.</returns>
 public static string GetDbKey(EntityMetadata typeMetadata, object entity)
 {
     return(GetDbKey(typeMetadata, GetEntityKey(typeMetadata, entity)));
 }
Beispiel #2
0
 /// <summary>
 /// Gets the database key of an entity.
 /// </summary>
 /// <param name="typeMetadata">The type metadata of entity.</param>
 /// <param name="entityKey">The entity key.</param>
 /// <returns>The database key.</returns>
 public static string GetDbKey(EntityMetadata typeMetadata, string entityKey)
 {
     return(string.Concat(typeMetadata.Name, entityKey));
 }