F
F
FairyFox57002020-04-07 12:17:11
PHP
FairyFox5700, 2020-04-07 12:17:11

How to use a separate project with ASP.NET.CORE Identity in the main project with a three-layer architecture?

I want to use a separate project for authorization instead of implementing Identity in a three-layer (because I don’t know how to do it)
, but how can I use it in the main application?
Do you need your own database for this?
What then to do with migrations?
Are there any guides or solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Amin Aliyev, 2019-10-05
@amin4ik_03

I decided!

$products = $db->query("SELECT name, description, pricerub, priceusd FROM products");
    	$product = '';
    while ($row = $products->fetch_array()) {
      $product .= $row['name']." (".$row['description'].") — ".$row['pricerub']."₽"." (".$row['priceusd']."$)\n";
    }
    $bot->sendMessage($chat_id,
'Товары:
'.$product.
'

Введите стоимость товара который хотите купить');

R
Rsa97, 2019-10-05
@Rsa97

There are no elements in the $product array with indexes 'name' or 'pricerub'.
Either form the array correctly initially, or use array_column().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question