Hi,
I need to write some common methods for all repositories , how do i achieve this? I dont want to write custom repository for all entities . I need to use either ABP default repository or generic repository.
In RepositoryBase class I have seen an area for writing common methods
public abstract class SampleRepositoryBase<TEntity, TPrimaryKey> : EfRepositoryBase<SampleDbContext, TEntity, TPrimaryKey>
where TEntity : class, IEntity<TPrimaryKey>
{
protected SampleRepositoryBase(IDbContextProvider<SampleDbContext> dbContextProvider)
: base(dbContextProvider)
{
}
//add common methods for all repositories
}
I did wrote code here but i can't invoke it using Repository
Hi
Is there any Sample ABP angular + MVC+ Entity Framework Project with Stored Procedure available ?
I would like to use Stored Procedure for getting data from Multiple tables( I don't want to use Entity Framework GetAll Method)
Hi
i am checking webapi in Postman
I did login using "http://localhost:6634/api/Account/Authenticate" and I got a token
when i try to get tenant list using "http://localhost:6634/api/services/app/tenant/GetTenants " i am getting following response
{
"success": false,
"result": null,
"error": {
"code": 0,
"message": "Current user did not login to the application!",
"details": null,
"validationErrors": null
},
"unAuthorizedRequest": true
}
Method : Post Headers - Content-Type:application/json Authorization:[Token Got from Authenticate Api ]
Please help me on this
Hi
I am using Hangfire in my application to do some scheduled background task. but when this task is triggered its is firing an exception
WARN 2016-06-29 14:33:12,459 [duler] Hangfire.AutomaticRetryAttribute - Failed to process the job '9': an exception occurred. Retry attempt 5 of 10 will be performed in 00:04:36. System.IO.FileNotFoundException: Could not load file or assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
Please help me on this
Hi
I am setting up project for single instance multiple database. When i try to add tenants with connection string , i am getting an exception
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AbpAuditLogs' in the database.
WARN 2016-06-29 14:33:12,459 [duler] Hangfire.AutomaticRetryAttribute - Failed to process the job '9': an exception occurred. Retry attempt 5 of 10 will be performed in 00:04:36. System.IO.FileNotFoundException: Could not load file or assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Hangfire.Storage.InvocationData.Deserialize()