This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/a/14468767 | |
var numbers = new string[] { "100" ,"200", "100.1" , "200.1" }; | |
int N = 100; | |
var max = numbers.Select(n => n.Split('.')) | |
.OrderByDescending(p => p[0].PadLeft(N,'0')) | |
.ThenByDescending(p => p.Length > 1 ? p[1].PadRight(N, '0') : "") | |
.Select(p => p.Length > 1 ? p[0] + "." + p[1] : p[0]) | |
.First(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
【add Script0033.sql】 | |
--add Salt field to User table | |
alter table $schema$.[User] add [Salt] nchar(32) null | |
go | |
【FunnelWeb.Model.Authentication.Mappings.UserMapping.cs】 | |
Append: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates the job queue table and stored procedures in the database | |
*/ | |
DROP ROLE brightstar_role_gateway | |
GO | |
DROP PROCEDURE [dbo].[Brightstar_CompleteJob] | |
GO | |
DROP PROCEDURE [dbo].[Brightstar_GetJob] |
NewerOlder