I see you have integrated TypeScript to Aspnet Boiler plate and I want to use it. But I am having trouble proceeding without a documentation. I am fairly new to Typescript so documentation would surely help
Hi Hikalkan -
I loved the Swagguer implementation. Thank you a bunch for that. I have a problem in wiring the XML comments with Swagger. I tried someething like this :
.EnableSwagger(c =>
{
c.SingleApiVersion("v1", "XXXXWebApi");
c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First());
c.IncludeXmlComments(@"C:\Source Code\XXX-YYYY\XMLComments\Application Module\AAAAA.BBBBB.Application.XML");
})
.EnableSwaggerUi();
Still unable to wire up[ the comments. I used the hard coded path as I am yet to figure out a smart solution to get the comment file path .
Please let me know if I am doing anything wrong
Hi Hilkan -
Thanks again for this amazing framework. Your support has been extraordinary. I am currently working on programatically showing and hiding properties for my DTOs. One approach I was thinking of is using Data Annotations and programatically set the data annotations based on user preference. Some of the values that the user can manipulate for each property are
I would be storing these values in a json string in my database for each dto at the Tenant level as well as the user level.
I am also planning to create a DTO manager which will have an input as a DTO , and then all the above manipulations would occur and then send the back the modified DTO before sending to the Web layer.
Could you suggest some design ideas on implementing the above ?
Thanks, Partha
I am trying to send email from ABPZero. But our smtp server doesn't require any authentication, so what default credentials abp zero is passing
Hi Hilkan-
I am trying to create a documentation for my webAPI. I was going through [http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/creating-api-help-pages]). But i am unsure how do I integrate this to my WebAPI project in Abp zero.
Could you help me with this ?
Thanks, Partha
Hi Halil -
Hope you are doing good. And thank you once again for replying each of my queries. Thanks for bearing me so far. :oops:
I read few of the previous articles on implementing custom repositories but couldn't get a satisfied answer.
I am interested in custom repositories because I would like to call a parameterized stored procedure and get an output from it. I want to write a generic repository to call stored procs and use it wherever I would like.
Any sample code is very much appreciated.
Thanks, Partha
Hi Halil -
I am interested in using the LLBLGen Pro Framework which I understand is not yet integrated with Abp. Is there any scope if you could do this in future.
If not could you guide me on what are the areas I need to watch out for other than Unit Of Work and Repository implementation.
I went through the Abp.EntityFramework code and still analyzing, but if you code guide me in the right direction or approach to start building I will do it and share it with the community.
Thanks, Partha
I was going through the below post :
#488@8b17fa78-f26f-44a4-bd4f-1ea5b00d5f75
But couldn't find an answer. But my requirement is more or less similar.
I want to use all inbuild functionality of ASPNET ZERO but I would like to save all tenant related information other than implemented by AspnetZero to be stored in it's own DB.
To be more specific I want all transnational data (like vendor,customer,etc) to be stored in a separate database for each Tenant.
<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/MultipleDbContextDemo">https://github.com/aspnetboilerplate/as ... ontextDemo</a> : This is a solution which enables me to seggregate the data.
The problem is I want to programatically change the DBContext connection string based on TenantID. I am unable to access ASPNetZero Sessions outside DBcontext contructor , so I am not sure how to use this to pass the correct connection string. Moreover I am also unable to access Session in my DbContext class. So the hwole question revolves around how to access the TenantID so that I can get the connection string and pass on to the database.
public class TesTrans : AbpDbContext { /* Setting "Default" to base class helps us when working migration commands on Package Manager Console. * But it may cause problems when working Migrate.exe of EF. ABP works either way. * */ public virtual IDbSet<COAUnit> COAUnit { get; set; }
// public virtual IDbSet<AddressUnit> AddressUnit { get; set; }
<span style="color:#BF00BF">// nameOrConnectionString - How to set this connection string as I am unable to access ABPSession or any session </span> public TesTrans (string nameOrConnectionString) : base(nameOrConnectionString) {
}
/* This constructor is used by ABP to pass connection string defined in CORPACCOUNTINGDataModule.PreInitialize.
* Notice that, actually you will not directly create an instance of TesTrans since ABP automatically handles it.
*/
}
My project has the requirement where one single user can be associated with multiple companies. This is taken care by AspnetZero. I think it would be useful if we have the following items implemented as well :
When we add or do any activity the system automatically updates the TenantID in DB , but I don't see any such provision for Organization, probably for the lack of above implementation.
To start with I am in love with Abp and AbpZero. Awesome Job @hikalkan.
I have read the previous article of extending the session ields :
#584@1182f777-3cd5-40b6-82d9-19e91497527f
I found the easiest way to do is to add claims directly but I don't think that's the smartest way to do it.
Could you provide an example with implementation as I am sure this is going to help a lot of people ? I am actually planning to store the organization ID for a user.