public virtual ObjectKey Create(object entity) { return(ObjectKey.Create(entity)); // If need to pass versioning information back and forth // you can use the following method to create an ObjectKey. //return ObjectKey.CreateWithVersion(entity); }