Example #1
0
 public static List <string> GetListEntityNameInit()
 {
     return(new List <string>
     {
         Area.EntityName(),
         Connection.EntityName(),
         ConnectionStatus.EntityName(),
         ConnectionType.EntityName(),
         Contract.EntityName(),
         Customer.EntityName(),
         CustomerFeedback.EntityName(),
         DetailImportReceipt.EntityName(),
         Device.EntityName(),
         DeviceType.EntityName(),
         Employee.EntityName(),
         Fee.EntityName(),
         Image.EntityName(),
         ImportReceipt.EntityName(),
         Manufacturer.EntityName(),
         Payment.EntityName(),
         PaymentFee.EntityName(),
         Provider.EntityName(),
         ServiceForm.EntityName(),
         ServiceFormStatus.EntityName(),
         ServicePack.EntityName(),
         ServicePackFee.EntityName(),
         Store.EntityName(),
     });
 }
Example #2
0
        public EntityBaseSql GetMyEntity(string entityName)
        {
            #region GetMyEntity
            if (entityName.Equals(Area.EntityName()))
            {
                return(new AreaSql());
            }
            if (entityName.Equals(Connection.EntityName()))
            {
                return(new ConnectionSql());
            }
            if (entityName.Equals(ConnectionStatus.EntityName()))
            {
                return(new ConnectionStatusSql());
            }
            if (entityName.Equals(ConnectionType.EntityName()))
            {
                return(new ConnectionTypeSql());
            }
            if (entityName.Equals(Contract.EntityName()))
            {
                return(new ContractSql());
            }
            if (entityName.Equals(ContractStatus.EntityName()))
            {
                return(new ContractStatusSql());
            }
            if (entityName.Equals(Customer.EntityName()))
            {
                return(new CustomerSql());
            }
            if (entityName.Equals(CustomerFeedback.EntityName()))
            {
                return(new CustomerFeedbackSql());
            }
            if (entityName.Equals(DetailImportReceipt.EntityName()))
            {
                return(new DetailImportReceiptSql());
            }
            if (entityName.Equals(Device.EntityName()))
            {
                return(new DeviceSql());
            }
            if (entityName.Equals(DeviceType.EntityName()))
            {
                return(new DeviceTypeSql());
            }
            if (entityName.Equals(Employee.EntityName()))
            {
                return(new EmployeeSql());
            }
            if (entityName.Equals(Fee.EntityName()))
            {
                return(new FeeSql());
            }
            if (entityName.Equals(Image.EntityName()))
            {
                return(new ImageSql());
            }
            if (entityName.Equals(ImportReceipt.EntityName()))
            {
                return(new ImportReceiptSql());
            }
            if (entityName.Equals(Manufacturer.EntityName()))
            {
                return(new ManufacturerSql());
            }
            if (entityName.Equals(Payment.EntityName()))
            {
                return(new PaymentSql());
            }
            if (entityName.Equals(PaymentFee.EntityName()))
            {
                return(new PaymentFeeSql());
            }
            if (entityName.Equals(Provider.EntityName()))
            {
                return(new ProviderSql());
            }
            if (entityName.Equals(ServiceForm.EntityName()))
            {
                return(new ServiceFormSql());
            }
            if (entityName.Equals(ServiceFormStatus.EntityName()))
            {
                return(new ServiceFormStatusSql());
            }
            if (entityName.Equals(ServicePack.EntityName()))
            {
                return(new ServicePackSql());
            }
            if (entityName.Equals(ServicePackFee.EntityName()))
            {
                return(new ServicePackFeeSql());
            }
            if (entityName.Equals(Store.EntityName()))
            {
                return(new StoreSql());
            }

            #endregion

            Console.WriteLine(entityName);

            return(null);
        }