Base solution for your next web application

Activities of "iamnish"

Question

npm : D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:93 At line:1 char:1

  • npm run create-bundles
  •   + CategoryInfo          : NotSpecified: (D:\OneDrive\sof...i\bin\cli.js:93:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    
      	throw err;
      			^
    
    

Syntax E rror: D:\O neDrive\soft w a r e
d i a m C o p y
s r c
n i . d i a m . w e b . m v c
b u n d l e s . j s on: Unexpect ed end of JSON input at JSON.parse (<anonymo u s>) at Object.Module._extensions..json ( in terna l /mod u le s/cjs/loa d er.j s:7 95:27)

at M o dule.lo ad ( interna l /modules/cj s / l o a d e r . j s : 6 5 3 : 3 2 )

a t

t r yM o dul eLo a d (interna l/mo du les/ cjs/loader.js:593:1 2 )

at Function. Mo du le._ load (internal/module s/cjs/loader.js:585:3) at Module.req uire ( inte rnal/mod u les/cjs /loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.web.mvc\webpack.config.js:6:20) at Module._compile (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:116:13) at requireConfig (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:118:6) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:125:17 at Array.forEach (<anonymous>) at module.exports (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:123:15) at yargs.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:71:45) at Object.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\yargs\yargs.js:567:18) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:49:8 at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:365:3) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] create-bundles: webpack --progress --profile --watch --mode=development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] create-bundles script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I have sslno as identity key and according to ur article i have implemented as below

public class Salemast : FullAuditedEntity, IMustHaveTenant {

[NotMapped]
public override int Id
{
    get { sslno; }
    set { /* nothing */ }
}

}

but u have given a note that------------ Only problem is that: you carefully use this entity since Id is meaningless. So, Repositories some methods (works with Id) will not be used. may i know what exactly will not work?

In Aappservice I want to get info from Bappservice ,how to achieve that?

from getA i need to call getB

its kind of weird whenever i inquire my table it will automatically pass a sql update statement to update the invdt and invduedt . it will pass the sql update statement For all the records fetched.

what i noticed is that statement is executed when data is passed from saleappservice to the controller

return new ListResultOutput<Salemastdto>(saledtos);

below statement is from sqlprofiler

exec sp_executesql N'UPDATE [dbo].[Sale_Mast] SET [Invdt] = @0, [Invduedt] = @1, [LastModificationTime] = @2, [LastModifierUserId] = @3, [CreationTime] = @4 WHERE (([TenantId] = @5) AND ([Invno] = @6)) ',N'@0 datetime2(7),@1 datetime2(7),@2 datetime2(7),@3 bigint,@4 datetime2(7),@5 int,@6 nvarchar(50)',@0='2016-07-14 00:00:00',@1='2016-07-17 00:00:00',@2='2016-08-27 15:01:59.7960039',@3=3,@4='2016-07-14 12:38:15.5270000',@5=2,@6=N'099'

Question

is there any recommended entity structure for multi tenancy in boilerplate?

should we use composite key or we should go for unique identity?

I was using composite primary key then I have issues with soft delete .

if using unique identity then hard to maintain uniqueness per tenant.

Please recommend the most preferred way

Question

where is the best place to put my business logics.do u have any example?

Question

1 -How to reverse softdelete? 2- is there anyway that certain user like admin can see soft delete and and reverse it 3- how to force permanent delete in certain condition

Question

public class Accountmain : FullAuditedEntity, IMustHaveTenant {

    [Required]
    public virtual int TenantId { get; set; }

    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public virtual int Amslno { get; set; }


    [Required]
    [StringLength(50)]
    public virtual string Accmain { get; set; }

    [Required]
    [StringLength(2)]
    public virtual string Posting { get; set; }  

    [Required]
    [StringLength(2)]
    public virtual string Side { get; set; }  


}

above is my entity .when i am adding new record id is always zero in database .while deleting if I provide only Amslno its not working but if all the elements are provided then delete is working perfectly .

Question

why the site goes to Application#/tenant/dashboard instead mpa/dashboard by default?what is the difference between them?

getting following error while opening a page :

Ni.diam.Web.Areas.Mpa.Controllers.SaleController' is waiting for the following dependencies:

  • Service 'Ni.diam.Dtoapp.ISaleappservice' which was not registered.
Showing 1 to 10 of 16 entries