Inhalte aufrufen

Profilbild

.Net 5 & MVC6


34 Antworten zu diesem Thema

#21 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1015 Beiträge

Geschrieben: 27 February 2017 - 18:53

Your solution contains outdated components which are incompatible with each other. Please delete the source folder completely and pull the whole solution again.


Murat Cakir
SmartStore AG


#22 HybridDevelopment

HybridDevelopment

    Member

  • Members
  • 21 Beiträge

Geschrieben: 28 May 2017 - 08:27

Hello,

 

Can you please explain me in a short, how the  .PreserveGridState() and .EnableCustomBinding(true) methods work in the various views located in Administration project? For example the .PreserveGridState() and .EnableCustomBinding(true) in the Views\Manufacturer\List.html..

 

Thank you in advance.



#23 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1015 Beiträge

Geschrieben: 29 May 2017 - 18:36

 .EnableCustomBinding(true) 

Enables custom binding stuff in AJAX controller actions. This should be true when the component's native parsing routines for paging, sorting etc. should be bypassed.

 

 .PreserveGridState()

A custom extension by us that saves the grid's last UI state in TempData until the next request to the very same grid. This ensures that paging, sorting and grouping state are preserved across requests.


Murat Cakir
SmartStore AG


#24 HybridDevelopment

HybridDevelopment

    Member

  • Members
  • 21 Beiträge

Geschrieben: 27 June 2017 - 19:57

Hello,

 

Can you please explain, how the insert of "news" comment works, in order for the record to be saved on both [NewsComment] and [CustomerContent] tables, after the execution of the below line in the code (located on line 327 NewsController of SmartStore.Web project):

 

_customerContentService.InsertCustomerContent(comment);

 
 
Thank you.


#25 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3034 Beiträge

Geschrieben: 27 June 2017 - 20:20

It is an entity framework related feature called "table-per-hierarchy inheritance" to eliminate redundant code for entity properties. It is explained here.
Inserting NewsComment also inserts CustomerContent only because NewsComment class inherits from CustomerContent class.

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#26 HybridDevelopment

HybridDevelopment

    Member

  • Members
  • 21 Beiträge

Geschrieben: 02 July 2017 - 16:53

As i have read in some articles for the "table-per-hierarchy inheritance" subject, only one table is created per hierarchy and the data are inserted on the same table always, and are separated by the Discriminator column.

How in this example two separate tables: "NewsComment" and "CustomerContent" were created?

 

Thank you very much.



#27 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3034 Beiträge

Geschrieben: 02 July 2017 - 17:38

By fluent migration (code first). See Data project: 201403112331027_Initial, NewsCommentMap and CustomerContentMap.


Schöne Grüße aus Düsseldorf,
Marcus Gesing


#28 HybridDevelopment

HybridDevelopment

    Member

  • Members
  • 21 Beiträge

Geschrieben: 13 July 2017 - 19:24

Hello,

 

Is it possible to apply this architecture with an oracle database?

In addition, regarding the authentication mechanism: does the OWIN and ASP.NET Identity used in the project or only Forms authentication?

 

Thank you.



#29 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1015 Beiträge

Geschrieben: 13 July 2017 - 20:31

 

 

Is it possible to apply this architecture with an oracle database?

 

SmartStore.NET uses Entity Framework for data access and thus only supports MS SQL Server and SQL CE out-of-the-box. You could however install ODP.NET and give it a try. Though I doubt that it will run smoothly.

 

 

 

In addition, regarding the authentication mechanism: does the OWIN and ASP.NET Identity used in the project or only Forms authentication?

 

For the time being only Forms authentication. After migrating SmartStore.NET to ASP.NET Core this will be replaced with ASP.NET Identity of course.


Murat Cakir
SmartStore AG


#30 HybridDevelopment

HybridDevelopment

    Member

  • Members
  • 21 Beiträge

Geschrieben: 14 July 2017 - 18:16

Hi Murat,

 

Thanks for your response.

Do you know when SmartStore.NET will be migrated to ASP.NET Core?

And something else related with the exception-error handling:

All exceptions-errors are handled via the HandleExceptionFilter Attribute?

 

Thank you for your whole assistance.



#31 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1015 Beiträge

Geschrieben: 14 July 2017 - 20:03

Migrating to ASP.NET Core is on our roadmap for the next major release 4 (by the end of 2018). 

 

All exceptions-errors are handled via the HandleExceptionFilter Attribute?

 

Yes, absolutely correct.


Murat Cakir
SmartStore AG


#32 HybridDevelopment

HybridDevelopment

    Member

  • Members
  • 21 Beiträge

Geschrieben: 01 September 2017 - 16:57

Hello,

 

Just a generic question:

 

On your homepage you refer the below regarding the web api.

"RESTful Web API

Integrate SmartStore.NET into your business processes and applications and bring you workflow to perfection. The powerful Web API provides read and write access to almost all app resources."

 

All the implementation related with the API, is located in WebApi folder of SmartStore.Web.Framework project only? Is there anywhere else you implement WebAPI and odata restful apis?

 

With this implementation, is it possible to extend smartstore architecture, and build for example a mobile application, that uses all the functionalities of smartstore through this WebAPI?

 

Thank you. 



#33 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3034 Beiträge

Geschrieben: 01 September 2017 - 18:02

No, the implementation of the Web API is located in a plugin. Only some basic infrastructure components are part of the framework project. The purpose of the API is to exchange data between the shop and any other software. A plugin is the first choice when you want to extend SmartStore.NET.

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#34 HybridDevelopment

HybridDevelopment

    Member

  • Members
  • 21 Beiträge

Geschrieben: 01 September 2017 - 18:12

Hi Marcus,

 

Thank you for your immediate response.

It would be appreciated if you tell me which is this plugin, and where is located..

 

Thanks again.



#35 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3034 Beiträge

Geschrieben: 01 September 2017 - 18:59

The Web API plugin is not open source anymore. You can find it deployed in the demo backend here. Open source plugins are here and there.


Schöne Grüße aus Düsseldorf,
Marcus Gesing




Auf dieses Thema antworten