public static WikiOwnerType get_wiki_owner(Guid applicationId, Guid id, ref Guid ownerId) { WikiOwnerType ownerType = WikiOwnerType.NotSet; _get_wiki_owner(applicationId, id, ref ownerId, ref ownerType); return(ownerType); }
public static Guid get_wiki_owner(Guid applicationId, Guid id, ref WikiOwnerType ownerType) { Guid ownerId = Guid.Empty; _get_wiki_owner(applicationId, id, ref ownerId, ref ownerType); return(ownerId); }
public static WikiOwnerType get_wiki_owner_type(Guid applicationId, Guid id) { Guid ownerId = Guid.Empty; WikiOwnerType ownerType = WikiOwnerType.NotSet; _get_wiki_owner(applicationId, id, ref ownerId, ref ownerType); return(ownerType); }
public static void GetWikiOwner(Guid applicationId, ref Guid ownerId, ref WikiOwnerType ownerType, Guid id) { string spName = GetFullyQualifiedName("GetWikiOwner"); try { IDataReader reader = ProviderUtil.execute_reader(spName, applicationId, id); _parse_wiki_owner(ref reader, ref ownerId, ref ownerType); } catch (Exception ex) { LogController.save_error_log(applicationId, null, spName, ex, ModuleIdentifier.WK); } }
private static void _parse_wiki_owner(ref IDataReader reader, ref Guid ownerId, ref WikiOwnerType ownerType) { try { reader.Read(); if (!string.IsNullOrEmpty(reader["OwnerID"].ToString())) { ownerId = (Guid)reader["OwnerID"]; } if (!string.IsNullOrEmpty(reader["OwnerType"].ToString())) { try { ownerType = (WikiOwnerType)Enum.Parse(typeof(WikiOwnerType), (string)reader["OwnerType"]); } catch { ownerType = WikiOwnerType.NotSet; } } } catch { } if (!reader.IsClosed) { reader.Close(); } }
private static void _get_wiki_owner(Guid applicationId, Guid id, ref Guid ownerId, ref WikiOwnerType ownerType) { DataProvider.GetWikiOwner(applicationId, ref ownerId, ref ownerType, id); }