123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
-
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated from a template.
- //
- // Manual changes to this file may cause unexpected behavior in your application.
- // Manual changes to this file will be overwritten if the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- using System.Collections.Generic;
- namespace EMIS.Entities.HRServices
- {
- public class TableKeyDictionary
- {
- private static Dictionary<string, string> items;
- public static Dictionary<string, string> Items
- {
- get { return items; }
- }
- static TableKeyDictionary()
- {
- items = new Dictionary<string, string>();
- items.Add("Comm_OrgInfo", "dpid");
- items.Add("Comm_Posts", "postid");
- items.Add("Comm_Users", "userid");
- }
- public static string GetKeyName<TEntity>(TEntity entity)
- {
- string tableName = entity.GetType().Name;
- return items[tableName];
- }
- public static string GetKeyName<TEntity>()
- {
- string tableName = typeof(TEntity).Name;
- return items[tableName];
- }
- }
- }
|