https://www.learnrxjs.io/learn-rxjs/subjects/behaviorsubject
must do it
https://dev.to/rfornal/creating-a-data-store-in-angular-1f8a
https://www.learnrxjs.io/learn-rxjs/subjects/behaviorsubject
must do it
https://dev.to/rfornal/creating-a-data-store-in-angular-1f8a
ng g c downloadapp --module ../app
ng generate module module-test --module app --routing true --route test
>>sql get page list with filter values and pagenation.
if id is not passing make it null then get all values.
hre i am passing id as int so if i pass id 0 then make it null.
COALESCE(NULLIF(@AgentID, '')
here is code.
ALTER PROC [Master].[usp_AccountPageView]
@AgentID int,
@Status bit,
@PageNo smallint,
@Rows smallint ,
@ProfileStatus bit
AS
BEGIN
;with AdminStatus as (select lookupid,lookupdescription from config.lookup where LookupCategory='ADMINSTATUS')
SELECT Ac.[ID], Ac.[AgentID], Ac.[AccountName], Ac.[ContactPerson], Ac.[EmailID], Ac.[Password], Ac.[MobileNo], Ac.[AdminStatus], Ac.[Status], Ac.[CreatedOn], Ac.[CreatedBy],
ISNULL(b.LookupDescription,'') As AdminStatusDescription,Ag.AgencyName ,Ac.ProfileStatus
FROM [Master].[Account] Ac
left outer join AdminStatus b on
Ac.adminstatus = b.LookupID
Left Outer Join Master.Agent Ag ON
Ac.AgentID = Ag.ID
Where
Ac.AgentID = COALESCE(NULLIF(@AgentID, ''), Ac.AgentID)
And Ac.Status = @Status
And Ac.ProfileStatus=@ProfileStatus
ORDER BY Ac.[ID]
OFFSET @Rows * @PageNo ROWS
Fetch NEXT @Rows ROWS ONLY
END
-- ========================================================================================================================================
-- END [Master].[usp_AccountPageView]
-- ========================================================================================================================================
go
ALTER PROC [Master].[usp_AccountRecordCount]
@AgentID int,
@Status bit,
@PageNo smallint,
@Rows smallint,
@ProfileStatus bit
AS
BEGIN
if @AgentID = 0
select @AgentID=null
SELECT COUNT(0)
FROM [Master].[Account] Ac
Left Outer Join Master.Agent Ag ON
Ac.AgentID = Ag.ID
Where
Ac.AgentID = COALESCE(NULLIF(@AgentID, ''), Ac.AgentID)
And Ac.Status = @Status
And Ac.ProfileStatus =@ProfileStatus
END
-- ========================================================================================================================================
-- END [Master].[usp_AccountRecordCount]
-- ========================================================================================================================================
GO
ALter PROC [Master].[usp_AccountPageView] 0,'false',0,10
@AgentID int,
@Status bit,
@PageNo smallint,
@Rows smallint
AS
BEGIN
SET @AgentID = CASE WHEN @AgentID= 0 THEN 'null' END
;with AdminStatus as (select lookupid,lookupdescription from config.lookup where LookupCategory='ADMINSTATUS')
SELECT Ac.[ID], Ac.[AgentID], Ac.[AccountName], Ac.[ContactPerson], Ac.[EmailID], Ac.[Password], Ac.[MobileNo], Ac.[AdminStatus], Ac.[Status], Ac.[CreatedOn], Ac.[CreatedBy],
ISNULL(b.LookupDescription,'') As AdminStatusDescription,Ag.AgencyName ,Ac.ProfileStatus
FROM [Master].[Account] Ac
left outer join AdminStatus b on
Ac.adminstatus = b.LookupID
Left Outer Join Master.Agent Ag ON
Ac.AgentID = Ag.ID
Where
Ac.AgentID = ISNULL(@AgentID, 0 )
And Ac.Status = @Status
ORDER BY Ac.[ID]
OFFSET @Rows * @PageNo ROWS
Fetch NEXT @Rows ROWS ONLY
END
sql quries
https://www.mssqltips.com/sqlservertip/1145/date-and-time-conversions-using-sql-server/
1.first error due to microsoft.tools.not installed
2.due to not closed string in appsetting.json
3.this is using model create table cmds.
here how to deploy multiple application in one azure appservice
1.goto configuration
2.go to tap virtualdirector
3.select add path
4.add /webapi and folder name site\api and main thing is to uncheck directory then it will run as application.
5.deploy files to the virtual path folder site/api later run app with /webapi
booom u will get result
in template ngtemplate
the value ngmodel not work for thia use
There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...