public bool Equals(IBaseBLL other)
        {
            if (other is null)
            {
                return(false);
            }

            return(this.Id == other.Id);
        }
     public static IBaseBLL<T> GetProperBllFromObjName<T>(string entityName)
     { 
         IBaseBLL<T> baseBLL = null;
         switch (entityName)
         { 
             case "Country":
                 CountryBLL<Country> aa = new CountryBLL<Country>(); 
                 baseBLL = (IBaseBLL<T>) aa; //error line
                 break;
         }
 
         return baseBLL;
     }
 public BaseLocalService(IBaseBLL <Entity> bll)
 {
     this.baseBLL = bll;
 }
Example #4
0
 public BaseController(IBaseBLL <TModel, TEntity> baseBLL)
 {
     _baseBLL = baseBLL;
 }
 static void Main()
 {
     IBaseBLL<Country> c = GetProperBllFromObjName<Country>("Country");
     IBaseBLL<BaseEntity> d = GetProperBllFromObjName<BaseEntity>("Country");
 }
        public bool Equals(IBaseBLL other)
        {
            var oth = (testtable)other;

            return(this.Id == oth.Id && this.Value == oth.Value);
        }